On Sun, 2003-01-26 at 09:55, Renato Primavera wrote:
> Hello All,
>
>
> I'm trying to add a personal JAR, called "myownjar.jar" to my
> project.xml file, but when I try to compile this project with the "maven
> java:compile" command, the JAR seems not to be included.
> It results some compilation errors...
>
> Is something wrong in my <build> declaration ?
>
> <build>
> <sourceDirectory>src/java/main</sourceDirectory>
> <unitTestSourceDirectory>src/java/test</unitTestSourceDirectory>
> <jars>
> <jar>lib/myownjar.jar</jar>
> </jars>
> </build>
<jars/> is a dead element.
You must use a preGoal to copy JARs into the final JAR:
<preGoal name="java:jar">
<copy file="myown.jar" todir="${maven.build.dest}"/>
</preGoal>
> Thanks in advance,
>
> RP
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>