If you're trying to get jars included in your war file, see http://jakarta.apache.org/turbine/maven/reference/plugins/war/properties.html
If the jars you're wanting in your war file don't exist in the maven repository, move them out of WEB-INF/lib and into say <project>/packages/war-base/jars/war-base-version.jar (the same format as the repository)
Then as a preGoal to java:compile copy the war files up to your local repository eg. along the lines of the following
<goal name="environment">
<property environment="env"/>
<fail unless="env.MAVEN_HOME" message="Please set the MAVEN_HOME environment variable to the location of your Maven installation"/>
</goal>
<preGoal name="java:compile">
<attainGoal name="environment"/>
<copy todir="${env.MAVEN_HOME}/repository">
<fileset dir="packages">
<include name="**/*.jar"/>
</fileset> </copy>
</preGoal>
I'll be doing up a faq entry for this kind of thing shortly.
Daniel Kehoe wrote:
I've set my project.properties to use
maven.lib.repo=src/webapp/WEB-INF/lib
I'd like needed jars to be picked up from there. But it doesn't seem to
work. "maven war" gives me "package does not exist" compile errors (in
the CVS HEAD version).
Have I got the syntax wrong?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
