I have been trying to exclude certain files from the jar however it does not seem to be working. I am trying to do this with the include and exclude switches. I searched the mailing list and some posts say this should work, others say no so I am trying to find out if anyone has accomplished this with Maven 2.0.

For example, I have this in my pom.xml:

<resources>
     <resource>
        <directory>${basedir}/target</directory>
        <excludes>
          <exclude>**/web/handlers/**/*.*</exclude>
        </excludes>
     </resource>
     <resource>
        <directory>${basedir}</directory>
        <includes>
          <include>ReleaseNotes.txt</include>
        </includes>
     </resource>
  </resources>

Now the include works, it adds the release notes to the jar but the exclude does not work. Very strange. Any ideas or comments on how to accomplish this would be much appreciated. I know I could do it with the ant plugin after the compile phase (move the code I do not want out of the target folder) but I was hoping I could simply accomplish this with the excludes switch.

Regards,
Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to