Hi Peter, what is the complete configuration for the plugin? Have a look at "mvn help:effective-pom". Remember, that the configuration is merged from the (inherited) pluginManagement section. Note, that in other plugin configuration with includes/excludes the exclude is ignored, if an include is defined (although this is not stated in the maven-jar-plugin's docs). This might also apply here.
- Jörg Peter Horlock wrote: > Hi Rémy, thanks for your reply. I also tried mvn package -Pmyflag, > but this did't work out either - btw -p SPACE FLAG is what is said on > the maven docu > site: > http://maven.apache.org/guides/introduction/introduction-to-pr > ofiles.html : > > mvn groupId:artifactId:goal -P profile-1,profile-2 > > However, the new Maven - The definitive Guide - Pdf book says > -PMYFLAG. > > ------- > Next, as you suggested, I tried it directly without a profile, and it > neither worked :-( I am not even sure if what I am trying is supposed > to be working - I am trying to exclude certain classes or package - > not simple > exluding a certain src folder, like "include "src/java" but exclude > "src/java2" or so - I am trying to do in on a package or class basis - > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>jar</goal> > </goals> > <configuration> > <excludes> > > <exclude>**/com/mycompany/mypackage/mysubpackage/MyClassA.java > </exclude> > > <exclude>**/com/mycompany/mypackage/mysubpackage/packageA/*</exclude> > > <exclude>**/com/mycompany/mypackage/mysubpackage/packageB/*</exclude> > </excludes> > </configuration> > </execution> > </executions> > </plugin> > > I suppose the exclude paths are wrong - but how should I define them? > src/java/com...? > > Thanks in advance, > > Peter --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
