Howard Lin wrote:
>I would like to move the final jar file into another directory. Should I
>do it in preGoal or postGoal? By default, Maven put it in the top level
>distribution dir. I would like to move it to a sub-dir, like lib dir.
>What is the property to refer to the final jar file?
>
I would make a postGoal in your maven.xml file, like this:
<postGoal name="java:jar">
<mkdir dir="${maven.build.dir}/lib"/>
<move file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.build.dir}/lib"/>
</postGoal>
This is untested, but should work ...
Cheers,
St�phane
>
>Thanks in advance,
>
>Howard Lin
>
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>