On Wednesday, August 30, 2006 05:32, Attila Mezei-Horvati wrote: > Hi, > > Slowly I understand the life cycles but still not sure > in what order are their components run. > > My problem: I have a war package, in it I specify an > ant task at the package phase to copy a jar into the > lib so the war would take it. For some reason the copy > is done after the war creation. Can somebody tell me > why? > > thanks, > Attila > > <execution> > <id>packaging</id> > <phase>package</phase> > <configuration> > <tasks> > <copy todir="target/matrix/WEB-INF/lib"> > <fileset dir="target"><include > name="sxmltypes.jar" /></fileset> > </copy> > </tasks> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> >
If you're trying to include a jar in the lib folder of a war package, just declare the jar file as a dependency in the war's pom file. This will make maven automatically put it in the lib folder during packaging. - Henry --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
