java.lang.IllegalArgumentException: invalid version "0.1.0-SNAPSHOT": non-numeric "0-SNAPSHOT"

Talend Version          6.2.1

Summary

 Deploying ESB Task fails when Feature Artifact published using commandline's publishRoute command
Additional Versions  5.6.x and above
Product  
Component  
Problem Description Using the commandline to publish a route with the following command:

publishRoute testRoute --version 0.1 --group org.example --artifactId testRoute --publish-version 0.1.0-SNAPSHOT --artifact-repository "repository url" -u username -p password
Deploying an ESB Task created with artifacts published as above, fails with the following error:
java.lang.IllegalArgumentException: invalid version "0.1.0-SNAPSHOT": non-numeric "0-SNAPSHOT". 
Problem root cause  
Caused when adding -SNAPSHOT to the --publish-version option:
--publish-version 0.1.0-SNAPSHOT
Solution or Workaround  It should be be just --publish-version 0.1.0 and the extra option -s (--snapshot)

publishRoute testRoute --version 0.1 --group org.example --artifactId testRoute --publish-version 0.1.0 --snapshot --artifact-repository "repository url" -u username -p password
JIRA ticket number  
Version History
Revision #:
1 of 1
Last update:
‎05-17-2017 10:44 PM
Updated by:
 
Labels (1)
Contributors