you can make new projects just for packaging.
make these project depend on your jars.
then use the dependency plugin to unpack and repack.
you might find some useful ideas here (drill down to child poms):
http://fisheye5.cenqua.com/browse/open-esb/esb-packages
At 10:38 PM -0700 8/19/10, Jack Neilson 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!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]