maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baumar <>
Subject using ${pom.version} in assembly.xml
Date Thu, 25 Oct 2007 08:12:02 GMT

I found a strange effect when using the property  ${pom.version} in an
assembly.xml. Within the <file> element, it is inserted corrected within the
<source>element, but not in <outputDirectory>.

What we try to achieve is to add a directory name containing the version
number in front of the path in the zipfile, because for some tests there are
several versions used in parallel; so instead of /lib we would like to have

in concrete


As mentioned, target/tavx-${pom.version}.jar is resolved correctly to
tavx-1.0.jar, the jar just created and added to the zip.
However the path is written literally and turns out in the zip file as


I tried other properties like ${user.home} and it worked correctly.

Would there be a restriction that the pom.version must not be used in the
element outputDirectory?

Any idea what this could be or how the pom's version number could be
propagated to the assembly.xml and used as part of a path name?

Thanks for help

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message