Hi,
I've got a java package (along with the jar dependencies it uses) that I do
not want to be added to the war file we send to our client. Also, I do not
want the pom.xml to be part of the war file.
(This is the default, the devevelopment war file is build by using a
profile).
I tried this:
<build>
<resources>
<resource>
<directory>${basedir}/src/main/java/com/package1/package2/package3/**</directory>
<excludes>
<exclude>*.*</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/**</directory>
<excludes>
<exclude>pom.xml</exclude>
</excludes>
</resource>
However, this doesn't work! :-(
I also tried this:
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>${javaVersion}</source>
<target>${javaVersion}</target>
<excludes>
<exclude>${basedir}/src/main/java/com/package1/package2/package3/**</exclude>
<exclude>**/pom.xml</exclude>
</excludes>
</configuration>
</plugin>
However, this neither worked! :-(
Last but not least - when I get this to work - I have a dependency that is
only used by the package I want to remove anyway -
so I can simply remove this dependency too, or how??
Thanks in advance!
Peter