Stephen,

jar:snapshot (jar-plugin 1.3) calls maven:snapshot that puts a variable named snapshotSignature into the plugin context. then it sets maven.final.name to snapshotSignature. so you can look it up by querying the plugin context :

<project xmlns:ant="jelly:ant">
<postGoal name="jar:snapshot">
<ant:echo>maven.final.name: ${pom.getPluginContext('maven-jar-plugin').findVariable('maven.final.name')}.jar</ant:echo>
</postGoal>
</project>


works under 1.0-rc1 with maven-jar-plugin-1.3

-- gd

Stephen Colebourne wrote:

I am trying to build another jar file as part of the main jar build (commons
collections).

The following extract maven xml works fine for a normal build. When I do
jar:snapshot however, the maven.build.name is reset from the snapshot to the
original between the actual jar:jar goal and the postGoal. As a result, the
unjar fails. This isn't very useful. Am I doing something wrong??

 <postGoal name="jar:jar">
     <ant:unjar dest="${workdir}"
src="${maven.build.dir}/${maven.final.name}.jar"/>
     <ant:jar .....

Stephen


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]








--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to