java - SNAPSHOT and RELEASE versions are not getting update at Maven Local Repository -
i had set nexus repository link-up 2 separate projects. building , deploying release , snapshot versions on nexus when trying use changes in other project using maven update changes not getting updated.
so did in a_project.jar in 1 project got updated in nexus repository.
but when trying updated jar @ b_project, getting old jar there in maven's local repository. now, if manually delete a_project.jar, apparently gets updated code.
for achieving updated version of snapshot , released version had tried following ways.
- i had used -u mvn clean build.
- i have changed update policy in setting.xml , pom.xml follows.
in settings.xml
<pluginrepository> <id>deployment</id> <name>internal nexus repository</name> <url>http://server/nexus/content/groups/public/</url> <layout>default</layout> <snapshots> <enabled>true</enabled> </snapshots> <releases> <updatepolicy>always</updatepolicy> </releases> </pluginrepository>
in pom.xml
<repositories> <repository> <id>snapshots</id> <url>http://server/nexus/content/repositories/snapshots</url> <snapshots> <updatepolicy>always</updatepolicy> </snapshots> <releases> <updatepolicy>always</updatepolicy> </releases> </repository> </repositories>
please become repeated process in getting latest jar me.
i can't see enough of settings.xml going on. have shown pluginrepository section, used resolution of maven plugins, not artifacts.
i'd suggest starting standard settings.xml file:
http://books.sonatype.com/nexus-book/reference/maven-sect-single-group.html
you'll want modify central repository definition updates snapshots:
<repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots> <enabled>true</enabled> <updatepolicy>always</updatepolicy> </snapshots> </repository> </repositories>
it sounds trying re-release same release versions? bad practice, releases should considered immutable (and lot of toolchain assumes are). increment version number make new release.
Comments
Post a Comment