I'm building a war and  the web project has the following structure:

         |-- pom.xml
         |-- src
         |   |-- com
         |   |   `--mycompany
         |   |        `--securedpage
         |   |             `-- somejavafile.java
         |   |              `-- anotherjavafile.java
         |   |
         |   |`--log4j.properties
         |   |`--messages_en.properties
         |    `--manager.properties
         |
         `-- WebContent
             |-- WEB-INF
             |   `-- web.xml
             `-- jsp
                 `-- defError.jsp


I wish to exclude the two properties files log4j.properties and
manager.properties from my final WAR file's WEB-INF/classes directory, but
when I do the build ,these 2 properties files
keep appearing in my WAR file WEB-INF/classes directory.My pom has the
following configuration :

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
     <archiveClasses>false</archiveClasses>
     <warSourceDirectory>WebContent/</warSourceDirectory>
     <webXml>WebContent/WEB-INF/web.xml</webXml>
     <warName>ssomanager</warName>
     <warSourceExcludes>**/*.java</warSourceExcludes>
    </configuration>
   </plugin>
  </plugins>
  <sourceDirectory>src</sourceDirectory>
  <scriptSourceDirectory />
  <resources>
   <resource>
    <directory>src</directory>
       <excludes>
         <exclude>**/*.java</exclude>
         <exclude>log4j.properties</exclude>
         <exclude>manager.properties</exclude>
       </excludes>
    <includes>
     <include>messages_en.properties</include>
    </includes>
   </resource>
  </resources>
 </build>


Where am I going wrong?





"Don't take the name of root in vain."

Jeff Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042

Reply via email to