I am running mvn dependency:list-repositories
in order to find out what repositories is maven actually considering and their order (I need this to troubleshoot my settings.xml
configuration).
For a bigger project that does not use any <repository>
tags in its pom.xml
files (parent and child modules) I am getting much more repositories than I expected. I was expecting to get only Maven central repository but I get:
[INFO] Repositories used by this build:
[INFO] id: sonatype-nexus-snapshots
url: https://oss.sonatype.org/content/repositories/snapshots
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => false, update => daily]
[INFO] id: apache.snapshots
url: http://repository.apache.org/snapshots
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => false, update => daily]
[INFO] id: netbeans
url: http://bits.netbeans.org/nexus/content/groups/netbeans
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
[INFO] id: spring-libs-snapshot
url: https://repo.spring.io/libs-snapshot
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
[INFO] id: apache.snapshots
url: https://repository.apache.org/snapshots
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => false, update => daily]
[INFO] id: spring-libs-release
url: https://repo.spring.io/libs-release
layout: default
snapshots: [enabled => true, update => daily]
releases: [enabled => true, update => daily]
[INFO] id: central
url: https://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
I searched where the super pom could be but did not find an absolute answer for it. I still looked in the location pointed by:
- this thread
- in the POM of the
maven-model-builder-3.6.3.jar
pointed by this SO answer
But I never see anything else but:
<repositories>
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
So, where are all these repositories configured or who configures/implies them automatically?