Maven plugin for collecting specific artifacts from multi module maven project into single directory. Useful only with multi modules project - does nothing in single pom project.
- skip - skips execution. Default: false
- target directory - place where collected files will be put. If path is absolute than plugin assumes that directory exists and is writable. If relative then it is relative to top level build directory. Default: collected-artifacts
- target packaging - list of packaging types to collect. Examples of types: jar, war, rpm etc. Default: rpm
Add sonatype snapshot repo to your maven repository list and configure plugin in your root pom.xml's build plugins section.
Example for binding plugin to install phase.
<plugin>
<groupId>com.github.skrethel</groupId>
<artifactId>artifact-collector-maven-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
<configuration>
<targetPackaging>
<value>rpm</value>
<value>deb</value>
</targetPackaging>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>collect</goal>
</goals>
</execution>
</executions>
</plugin>