I'm creating some additional jar file in my pom.xml of a big project (basically, some model classes)
I'm using the maven-jar-plugin with this configuration:
<execution>
<id>issue-models-jar</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
<classifier>issue-models</classifier>
<includes>
<include>**/api/issues/models/**</include>
</includes>
</configuration>
</execution>
This gives me nice clean jars. However, when I use these jars as dependencies in another project (after installing them in a repo), the dependencies of the 'mother' pom also appear.
I know I can exclude these depedencies, but I don't want to do that in each project where I use these jars.
Is such a thing feasable in maven? Or am I just taking the wrong approach(tm)?