Hi Grace,
Didn't work for me either, but have now written my own goal in maven.xml
which does everything I want anyway. The key tag is
<deploy:copy-deps todir="${dist.assemble.dir}/WEB-INF/lib"/>
Which copies all the dependencies to the assembly directory. It's only a
few lines to make up the rest of the distribution like this (which I'm sure
could be optimised!)
<project xmlns:deploy="deploy">
<goal name="pa-build-dist" prereqs="java:jar">
<property name="dist.dir" value="${maven.build.dir}/dist" />
<property name="dist.assemble.dir" value="
${maven.build.dir}/assemble" />
<mkdir dir="${dist.dir}" />
<mkdir dir="${dist.assemble.dir}" />
<move file="${maven.build.dir}/${maven.final.name}.jar"
tofile="${dist.assemble.dir}/pa.jar" />
<move file="${dist.assemble.dir}/pa.jar"
todir="${dist.assemble.dir}/WEB-INF/lib" />
<deploy:copy-deps todir="${dist.assemble.dir}/WEB-INF/lib"/>
<copy todir="${dist.assemble.dir}">
<fileset dir="web">
<include name="**/*.jsp" />
<include name="**/*.html" />
<include name="**/*.js" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
<include name="**/*.css" />
<include name="**/*.dtd" />
<include name="**/*.tld" />
<include name="**/*.xml" />
<include name="**/*.properties" />
</fileset>
</copy>
<war destfile="${dist.dir}/pa-dist.war"
webxml="${dist.assemble.dir}/WEB-INF/web.xml"
update="true"
basedir="${dist.assemble.dir}" />
<delete dir="${dist.assemble.dir}" />
</goal>
</project>
Hope this helps,
Mike
Grace Li <[EMAIL PROTECTED]> on 27/09/2002 16:34:17
Please respond to "Turbine Maven Users List"
<[EMAIL PROTECTED]>
To: "Turbine-Maven-User (E-mail)" <[EMAIL PROTECTED]>
cc:
Subject: j2ee:ear
I 've added the lines below to <depedency> section in project.xml, but the
jars were still ignored by j2ee.ear
<properties>
<ear.bundle.jar>true</ear.bundle.jar>
</properties>
Maven version: HEAD built yesterday.
Can anyone help a little? Thanks.
GL
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>