I set a repository in pom.xml file (see below):
<distributionManagement>
<repository>
<id>central</id>
<name>Internal Releases</name>
<url>http://3.36.231.203:8082/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Snapshots</name>
<url>http://3.36.231.203:8082/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
I have a dependency with a SNAPSHOT version, when I run mvn command, maven
will show that the dependency can't be found from the specified remote
repositories: central (http://repo1.maven.org/maven2). I wander why it
searches http://repo1.maven.org/maven2. I have specified the repository in
distributionManagement.
--
View this message in context:
http://www.nabble.com/Why-distributionManagement-doesn%27t-work--tp22489544p22489544.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]