在你pom
确保你正在使用 -
<dependencies>
<dependency>
<groupId>some.artifactory.group</groupId>
<artifactId>artifact-name</artifactId>
<version>1.0.0-19</version>
</dependency>
</dependencies>
<!-- please use the appropriate artifact and groupId -->
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
</plugins>
</build>
你正在执行命令 -
mvn versions:use-latest-releases
来源- http://www.mojohaus.org/versions-maven-plugin/use-latest-releases-mojo.html
注意- 以防万一这也涉及 SNAPSHOTS,请注意allowSnapshots并将命令用作 -
mvn versions:use-latest-releases -DallowSnapshots=true