maven-versions-plugin error when upgraded to version 2.2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

maven-versions-plugin error when upgraded to version 2.2

Raymond Asuncion
Hi,

Our build suddenly failed due to maven-versions-plugin upgrade to 2.2. We are using maven-version-plugin 2.1 with no problem.
The workaround we made was to  use these commands:

mvn -f pom.xml org.codehaus.mojo:versions-maven-plugin:2.1:set  -DnewVersion=$RELEASE_VERSION
mvn -f pom.xml org.codehaus.mojo:versions-maven-plugin:2.1:update-parent -DallowSnapshots=true -DparentVersion=[$COMMON_VERSION]
mvn -f pom.xml clean deploy -Ddeployment.environment=$DEPLOYMENT_ENVIRONMENT -Ddeployment.execution=$DEPLOYMENT_EXECUTION
mvn -f pom.xml org.codehaus.mojo:versions-maven-plugin:2.1:revert

instead of these commands:
mvn -f pom.xml versions:set -DnewVersion=$RELEASE_VERSION
mvn -f pom.xml versions:update-parent -DallowSnapshots=true -DparentVersion=[$COMMON_VERSION]
mvn -f pom.xml clean deploy -Ddeployment.environment=$DEPLOYMENT_ENVIRONMENT -Ddeployment.execution=$DEPLOYMENT_EXECUTION
mvn -f pom.xml versions:revert
below is the error we are getting:

[INFO] ------------------------------------------------------------------------ 
[INFO] Building Common Services Library dev-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO]  
[INFO] --- versions-maven-plugin:2.2:set (default-cli) @ services-common-library --- 
[INFO] Searching for local aggregator root... 
[INFO] Local aggregation root: /workspace/services/common/services-common-library 
[INFO] Processing change of com.babelcentral:services-common-library:dev-SNAPSHOT -> qa-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 2.341s 
[INFO] Finished at: Thu Apr 30 13:40:47 UTC 2015 
[INFO] Final Memory: 23M/402M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set (default-cli) on project services-common-library: Execution default-cli of goal org.codehaus.mojo:versions-maven-plugin:2.2:set failed. NullPointerException -> [Help 1] 
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 
command failed


attached is the pom.xml file we are using.

Thank you,
Mon



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

pom.xml (12K) Download Attachment
Loading...