MavenResource

HomePage | RecentChanges | Preferences

Attempting to get Maven to include the .properties file in the .war for the Struts EL subproject

This Works

maven.xml

  <preGoal name="war:war">

        <!-- Include struts-el .jar file in WEB-INF/lib -->
        <ant:copy todir="${maven.war.webapp.dir}/WEB-INF/lib/" overwrite="false"
            file="${basedir}/target/struts-el-1.3.0-dev.jar" />

        <!-- Include properties under WEB-INF/classes -->
        <ant:copy todir="${maven.war.webapp.dir}/WEB-INF/classes/" overwrite="false">
            <ant:fileset dir="${basedir}/src/exercise-taglib"
                includes="**/*.properties">
           </ant:fileset>
         </ant:copy>

        <!-- Include source code in example webapp -->
        <ant:copy todir="${maven.war.webapp.dir}/WEB-INF/src/" overwrite="false">
          <ant:fileset dir="${basedir}/src/exercise-taglib"
                       excludes="**/.svn/**">
           </ant:fileset>
        </ant:copy>
  </preGoal>

Unsuccessful

project.xml

 
    <resources> 
      <resource>
        <directory>src/exercise-taglib</directory>
          <targetPath>${maven.war.webapp.dir}/WEB-INF/classes/</targetPath>
            <includes>
            <include>**/*.properties</include>
          </includes>
        </resource>
    </resources>

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited August 7, 2005 5:03 am by WendySmoak (diff)
Search: