Merge "Add a tar.gz to the package step"

This commit is contained in:
Jenkins 2014-08-28 16:03:39 +00:00 committed by Gerrit Code Review
commit d55db93a6e
2 changed files with 52 additions and 0 deletions

19
pom.xml
View File

@ -199,6 +199,25 @@
<shortRevisionLength>6</shortRevisionLength>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<descriptors>
<descriptor>src/assembly/tar.xml</descriptor>
</descriptors>
<finalName>${artifactNamedVersion}</finalName>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>

33
src/assembly/tar.xml Normal file
View File

@ -0,0 +1,33 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>tar</id>
<formats>
<format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>README*</include>
<include>LICENSE*</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>${project.build.directory}/${artifactNamedVersion}.jar</source>
<outputDirectory>/</outputDirectory>
<destName>mon-persister.jar</destName>
</file>
<file>
<source>${project.basedir}/src/deb/etc/persister-config.yml-sample</source>
<outputDirectory>examples</outputDirectory>
</file>
<file>
<source>${project.basedir}/src/deb/init/mon-persister.conf</source>
<outputDirectory>examples</outputDirectory>
</file>
</files>
</assembly>