Type: New Feature
Affects Version/s: 2.1
Fix Version/s: None
Number of attachments :
I'm trying to override the version number in the pom using the CLI params -Dversion but the install plugin still uses the pom version creating a mismatched of the installed jar file:
pom version: SHIP_VERSION
As you can see, the install plugin installed the built jar file 1.4.2_2 to the local repos version=SHIP_VERSION......
Looking at the trunk code: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
this makes perfect sense as if the pom file exists, it reads the version from there and skip CLI parsing as requested in
MINSTALL-21. So would be nice to read first the pom, and then allow the CLI to override this. I don't know if you want to allow overriding the groupId and artifactId (I just looked at the version case).