Well, you're only including spring-context.xml with that config so Maven does what you're telling it to. :-) I think you would get what you want if you just remove the includes snippet (and keep the excludes).
/Anders On Fri, Dec 10, 2010 at 13:18, madeOfStarStuff <solksjae...@hotmail.com>wrote: > > Hi, I'm sure this will be simple one... > > My pom.xml is configured to create a jar; which is does. However, I've > added > some config to inlude and exclude certain files etc. When I do this, none > of the class files are added (i.e. package folders). > > pom.xml (snippets): > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.mypackage.me</groupId> > <artifactId>myapp</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > <name>myapp</name> > <url>http://maven.apache.org</url> > <dependencies> > <dependency> > ...... > > <build> > <pluginManagement> > <plugins> > <plugin> > > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <archive> > <manifest> > <mainClass> > > com.mypackage.me.ClassWithMainMethod > </mainClass> > </manifest> > </archive> > <includes> > > <include>spring-context.xml</include> > </includes> > <excludes> > > <exclude>/*.properties</exclude> > </excludes> > </configuration> > </plugin> > </plugins> > </pluginManagement> > > ........ > > using mvn clean install > > myapp-1.0-SNAPSHOT.jar > - META-INF > - spring-context.xml > - <NO> package folders? > > Any advice? > Many thanks.. > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Maven-create-JAR-tp3300215p3300215.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >