You can do thing like :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>src-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<classifier>sources</classifier>
<includeGroupIds>ch.sbb.mct.automat.sms</includeGroupIds>
<failOnMissingClassifierArtifact>false</failOnMissingClassifierArtifact>
<outputDirectory>${project.build.directory}/sources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
and then package the artifact. I use it to archive all sources archives of the
multiproject into a single zip file.
See dependency plugin doc.
Kuno
-----Urspr?ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. November 2008 10:39
An: [email protected]
Betreff: assembly plugin: include files only from specific groupId/artifactId
Hi @all,
is there any chance to tell the assembly plugin to only include dependencies
from a defined groupId?
I though of something like this (pseudo-code) :
<assembly>
...
<dependencySet>
<includes>
<include>com.myCompany.*:*</include>
</includes>
</dependencySet>
...
</assembly>
This should result in the following: all dependencies that match the
"com.myCompany"-groupId should be included in the assembly. Dependencies from
all other groupIds should not be considered.
Thanks for any help
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]