[KARAF-2930] Only use an aggregate repository when needed
Add some tests for gzipped repositories