I have following thoughts in this context:
1) Just run command mvn --version
. Go to maven installation directory and view the content of settings.xml
file under conf
folder. It should tell you which maven central repository is being used. It could be possible that there is no specific repository listed there. If that is the case then either default central repository is being used or it will be determined from content of pom.xml
file of maven module.
2) If settings.xml
file does not have any specific repository mentioned then go to maven module and check effective-pom
. It should tell you which maven central repository is being used. You might get similar to following tags in your effective-pom
file
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
Following links should also help you further:
http://maven.apache.org/ref/3.6.0/maven-model-builder/#Model_Interpolation
http://maven.apache.org/ref/3.6.0/maven-settings/settings.html
Please try using ${settings.repositories}
which will return List<Repository>