Devloper_b5
Devloper_b5

Reputation: 132

versions:set plugin set the userdefined pom version but installing old version

Question : versions:set plugin set the userdefined pom version but installing old version.

EX: I used command as versions:set -DnewVersion=43.0.2 clean install old version is 43.0.1, this set plugin suceessfully update pom version to 43.0.2 but while installing it refers old version as 43.0.1

Could you please help me on this..How can I install jar with updated new version

Upvotes: 0

Views: 385

Answers (1)

Gerold Broser
Gerold Broser

Reputation: 14762

Re "with single line command as it is updating the new version but at the same time with install command it should install updated version":

See Versions Maven Plugin, Basic Usage:

Maven 2.0, 2.1, 2.2 and 3.0 do not currently support re-reading modifications of the pom.xml within one invocation of Maven.

Upvotes: 2

Related Questions