views:

1260

answers:

1

Hi all,

i use the maven-buildnumber-plugin to generate my version number for JAR/WAR/EAR packages. So when doing a compile i'll get for example ${project.version}-${buildNumber}, because is set to this value. But when using mvn deploy just ${project.version} is the filename, samen when i set in pom.xml to XX ${buildNumber} then the filename ist file-XXX ${buildNumber} (<- not the content of buildNumber, instead ${buildNumber as test}). What do i do wrong? i also want to have the files installed with ${project.version} ${buildNumber}.

thx for any help

markus

+2  A: 

Hi Markus,

Not 100% sure I follow your question, but I had a problem getting a build number in my WAR manifest. The discussion here helped me out. I had to create a global property called build.version

<properties>
    <build.version>${project.version}-r${buildNumber}</build.version>
</properties>

and use that instead of using ${buildNumber} directly. Hopefully that'll be some help with your problem.

Hobo