Skip to content

Commit 840b746

Browse files
committed
Add assembly configuration for usage in per subproject tarball creation
1 parent 24ab64b commit 840b746

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

pom.xml

+16
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@
183183
-->
184184
</configuration>
185185
</plugin>
186+
<plugin>
187+
<artifactId>maven-assembly-plugin</artifactId>
188+
<configuration>
189+
<descriptors>
190+
<descriptor>src.xml</descriptor>
191+
</descriptors>
192+
</configuration>
193+
</plugin>
186194
</plugins>
187195
<pluginManagement>
188196
<plugins>
@@ -259,6 +267,14 @@
259267
</execution>
260268
</executions>
261269
</plugin>
270+
<plugin>
271+
<groupId>org.apache.maven.plugins</groupId>
272+
<artifactId>maven-assembly-plugin</artifactId>
273+
<version>2.2.1</version>
274+
<configuration>
275+
<tarLongFileMode>gnu</tarLongFileMode>
276+
</configuration>
277+
</plugin>
262278
</plugins>
263279
</pluginManagement>
264280
</build>

src.xml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<assembly>
2+
<id>src</id>
3+
<formats>
4+
<format>tar.bz2</format>
5+
</formats>
6+
<baseDirectory>${project.artifactId}-${project.version}-src</baseDirectory>
7+
<moduleSets>
8+
<moduleSet>
9+
<includeSubModules/>
10+
<sources>
11+
<useDefaultExcludes>false</useDefaultExcludes>
12+
<includeModuleDirectory>true</includeModuleDirectory>
13+
<fileSets>
14+
<fileSet>
15+
<excludes>
16+
<exclude>target/**</exclude>
17+
<exclude>bin/**</exclude>
18+
</excludes>
19+
</fileSet>
20+
</fileSets>
21+
</sources>
22+
</moduleSet>
23+
</moduleSets>
24+
25+
<fileSets>
26+
<fileSet>
27+
<includes>
28+
<include>pom.xml</include>
29+
</includes>
30+
</fileSet>
31+
</fileSets>
32+
</assembly>

0 commit comments

Comments
 (0)