Skip to content

Commit b3a4abb

Browse files
author
Andy Lintner
committed
Add distribution assembly
1 parent e1f1092 commit b3a4abb

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,24 @@
9090
<excludePackageNames>com.beowulfe.hap.impl</excludePackageNames>
9191
</configuration>
9292
</plugin>
93+
<plugin>
94+
<artifactId>maven-assembly-plugin</artifactId>
95+
<version>2.5.4</version>
96+
<configuration>
97+
<descriptors>
98+
<descriptor>src/assembly/distribution.xml</descriptor>
99+
</descriptors>
100+
</configuration>
101+
<executions>
102+
<execution>
103+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
104+
<phase>package</phase> <!-- bind to the packaging phase -->
105+
<goals>
106+
<goal>single</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
93111
</plugins>
94112
</build>
95113
<distributionManagement>

src/assembly/distribution.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
4+
<id>dir-with-dependencies</id>
5+
<formats>
6+
<format>dir</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<dependencySets>
10+
<dependencySet>
11+
<outputDirectory>/</outputDirectory>
12+
<useProjectArtifact>true</useProjectArtifact>
13+
<unpack>false</unpack>
14+
<outputFileNameMapping>${artifact.groupId}.${artifact.artifactId}-${artifact.version}${dashClassifier?}.jar</outputFileNameMapping>
15+
<scope>runtime</scope>
16+
</dependencySet>
17+
</dependencySets>
18+
</assembly>

0 commit comments

Comments
 (0)