maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thorsten.h...@vkb.de
Subject Re: release-plugin non-interactive release and system properties
Date Thu, 09 Jan 2014 09:22:29 GMT
Hi Steve,

> I’m confused as to how the version number in a pom file and the 
> system properties like -DdevelopmentVersion=2.0-SNAPSHOT and -
> DreleaseVersion=1.2
> interact.
> When I run a mvn –B release:prepare –DdryRun=true –Dtag=1.2 -
> DdevelopmentVersion=2.0-SNAPSHOT -DreleaseVersion=1.2 for a pom.xml 
> where <version>1.0</version> and <packaging>jar</packaging> the

> resulting jar file uses the pom version number not the command line 
> version, i.e xxx-1.0.jar . Is this expected behaviour and if so what
> is the point of specifying the versions on the command line ?

AFAIK this will only work when you have a snapshot version in your pom, 
i.e. <version>1.0-SNAPSHOT</version>.


Regards

Thorsten
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message