Created
June 14, 2013 14:25
-
-
Save wytten/5782232 to your computer and use it in GitHub Desktop.
Maven assembly plugin example that combines filesets and dependency sets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<assembly> | |
<id>install</id> | |
<includeBaseDirectory>false</includeBaseDirectory> | |
<formats> | |
<format>zip</format> | |
</formats> | |
<fileSets> | |
<fileSet> | |
<directory>src/assembly</directory> | |
<outputDirectory>bin</outputDirectory> | |
</fileSet> | |
<fileSet> | |
<directory>src/assembly</directory> | |
<outputDirectory>log</outputDirectory> | |
<includes> | |
<include>.empty</include> | |
</includes> | |
</fileSet> | |
</fileSets> | |
<dependencySets> | |
<dependencySet> | |
<outputDirectory>lib</outputDirectory> | |
<!-- <useProjectArtifact>false</useProjectArtifact> --> | |
<unpack>false</unpack> | |
<scope>runtime</scope> | |
</dependencySet> | |
</dependencySets> | |
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<descriptors> | |
<descriptor>${basedir}/assembly.xml</descriptor> | |
</descriptors> | |
</configuration> | |
<executions> | |
<execution> | |
<id>package-single</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment