Consider the following pom.xml
:
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<artifactId>bob</artifactId>
<groupId>alice</groupId>
<version>omicron</version>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>My Little Nexus</name>
<url>http://nexus.example.com:8080/nexus/content/groups/main/</url>
</pluginRepository>
</pluginRepositories>
</project>
When I try to run mvn clean
using the file above, the following appears in the output:
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
Any idea why? I thought that having my own repo with an id
of central
should prevent this?