It is compile that actually creates and copies resource deps into your
target/classes directory. The files under here is then bundled into a
jar.
A solution for you could be to exclude the unwanted package at compile
time.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*unwantedPackageName*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
-Ronny
-----Opprinnelig melding-----
Fra: noon [mailto:[EMAIL PROTECTED]
Sendt: 11. oktober 2006 11:16
Til: [email protected]
Emne: how to exclude a package / files from generated JAR-file?
While migrating from Maven1 to Maven2...
I've been trying to find a proper solution for this, but I'm still stuck
with this.
I have Java-files in 3 packages (folders) in my Eclipse project and I
wan't (for some reasons) to excelude one of these packages. With mvn
package command I get an JAR-file with all .class files. I've been
trying with differend solutions to excelude files / folder(s) from the
JAR with any luck.
In Maven 1, I was able to enter the exceluded folder in
project.properties-file, but in maven2 I don't know what to put and
where :|
Any ideas?
--
View this message in context:
http://www.nabble.com/how-to-exclude-a-package---files-from-generated-JA
R-file--tf2422135.html#a6752935
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:452cb65e8671995315910!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]