Don't fight Maven! Create one project for each artifact you want, it's a Maven Golden Rule.
/Anders On Fri, Aug 20, 2010 at 07:38, Jack Neilson <[email protected]> wrote: > Hi All, > > > I have a requirement to build a maven project into different jars, There > are > 10 different java packages > > in the src and I want about 4 different jars to be generated from a single > pom.xml. I am trying to create > > different profile for each jar I want to create in the same pom.xml. I am > trying to use include/exclude tags to > > the include/exclude package(pattern matching). Everytime I run the pom.xml > with a specific profile it is creating the > > jar with all the packages in it. Please help. > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-resources-plugin</artifactId> > > <version>2.3</version> > > </plugin> > > <plugin> > > <artifactId>maven-compiler-plugin > > </artifactId> > > <version>2.0.2</version> > > <configuration> > > <argLine>-ea -Xmx1024m</argLine> > > <fork>true</fork> > > <source>1.5</source> > > <target>1.5</target> > > <excludes> > > <exclude>**/pojo/**</exclude> > > <exclude>**/util/**</exclude> > > </excludes> > > > > <includes> > > <include>**/moto/**</include> > > </includes> > > </configuration> > > </plugin> > > > > > Thanks in Advance! >
