I'm new to maven, I want to asign dinamically the jar version of a jira plugin passing a parameter to maven by command line (win7 with maven 2.1.0), so I can generate the jar file name with the svn revision:
mvn -Dsvnrev=1 package
or
mvn package -Dsvnrev=1
but have an error: [INFO] Invalid task '1': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
I define the parameter in pom.xml but, is there something I'm missing?
<properties>
<myprop>MyJarStaticName${svnrev}</myprop>
</properties>
<version>${myprop}</version>
also I have tryed
<properties>
<myprop>${myprop}</myprop>
</properties>
<version>MyJarStaticName-${myprop}</version>
I had a watch to this post and this but It doesn't work for me :(