Skip to content

Commit

Permalink
ci: fixed tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianciutea committed Sep 8, 2021
1 parent 1ae73ec commit 1890965
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
14 changes: 7 additions & 7 deletions build/assembly/targz.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
<include>bin/${project.artifactId}</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
<outputDirectory>/usr/</outputDirectory>
<includes>
<include>bin/${project.artifactId}.jar</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>target/${project.artifactId}_${project.version}_noarch.jar</source>
<outputDirectory>usr/bin/</outputDirectory>
<destName>nrjmx.jar</destName>
</file>
</files>
</assembly>
8 changes: 7 additions & 1 deletion build/assembly/zip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@
<include>README*</include>
<include>LICENSE*</include>
<include>bin/${project.artifactId}.bat</include>
<include>bin/${project.artifactId}.jar</include>
</includes>
</fileSet>
</fileSets>
<files>
<file>
<source>target/${project.artifactId}_${project.version}_noarch.jar</source>
<outputDirectory>Program Files/New Relic/nrjmx/bin/</outputDirectory>
<destName>nrjmx.jar</destName>
</file>
</files>
</assembly>
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}_linux_${project.version}_noarch</finalName>
<finalName>${project.artifactId}_${project.version}_noarch</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
Expand All @@ -75,16 +75,17 @@
</plugin>
<plugin>
<groupId>com.coderplus.maven.plugins</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<artifactId>copy-rename-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>copy-file</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<sourceFile>target/${project.artifactId}_linux_${project.version}_noarch.jar
<sourceFile>target/${project.artifactId}_${project.version}_noarch.jar
</sourceFile>
<destinationFile>bin/nrjmx.jar</destinationFile>
</configuration>
Expand Down

0 comments on commit 1890965

Please sign in to comment.