Skip to content

Commit f374345

Browse files
ddimensiaBrandonArp
authored andcommitted
Added assembly descriptor and execution for making a tgz from the appassembler output. (#66)
1 parent cf6bfa5 commit f374345

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,21 @@
307307
</descriptors>
308308
</configuration>
309309
</execution>
310+
<execution>
311+
<id>app-tgz</id>
312+
<phase>package</phase>
313+
<goals>
314+
<goal>single</goal>
315+
</goals>
316+
<configuration>
317+
<appendAssemblyId>true</appendAssemblyId>
318+
<attach>false</attach>
319+
<tarLongFileMode>posix</tarLongFileMode>
320+
<descriptors>
321+
<descriptor>src/main/assembly/bin.xml</descriptor>
322+
</descriptors>
323+
</configuration>
324+
</execution>
310325
</executions>
311326
</plugin>
312327
<plugin>

src/main/assembly/bin.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2017 Dropbox, Inc.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.2.2"
18+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.2.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
20+
<id>bin</id>
21+
<includeBaseDirectory>false</includeBaseDirectory>
22+
<formats>
23+
<format>tgz</format>
24+
</formats>
25+
<fileSets>
26+
<fileSet>
27+
<directory>${project.basedir}/config</directory>
28+
<outputDirectory>config</outputDirectory>
29+
<filtered>true</filtered>
30+
<fileMode>0644</fileMode>
31+
</fileSet>
32+
<fileSet>
33+
<directory>${project.basedir}/target/appassembler/bin</directory>
34+
<outputDirectory>bin</outputDirectory>
35+
<fileMode>0755</fileMode>
36+
<includes>
37+
<include>cluster-aggregator</include>
38+
</includes>
39+
</fileSet>
40+
<fileSet>
41+
<directory>${project.basedir}/target/appassembler/lib</directory>
42+
<outputDirectory>lib</outputDirectory>
43+
<fileMode>0644</fileMode>
44+
</fileSet>
45+
</fileSets>
46+
</assembly>

0 commit comments

Comments
 (0)