简体   繁体   中英

How to release Maven project using Jenkins

When I am trying to release a Maven project using Jenkins, I am getting an error like this:

Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project maven-plugin: You don't have a SNAPSHOT project in the reactor projects list.

The error message means that the project (or one of its submodules) is not a SNAPSHOT project, ie it's version is not [version]-SNAPSHOT but only [version] .

You cannot release a project that is not a SNAPSHOT project so you need to change the version of your pom.xml to include -SNAPSHOT .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM