Skip to content

Commit

Permalink
Creates deb package as part of build
Browse files Browse the repository at this point in the history
This creates a minimal .deb package that could be used to deploy just this jar to the system.
  • Loading branch information
Guillaume Lederrey committed Feb 9, 2016
1 parent b034580 commit b53cc76
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,31 @@
</instructions>
</configuration>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<dataSet>
<data>
<src>${project.build.directory}/${project.build.finalName}.jar</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/lib/gelfj</prefix>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
8 changes: 8 additions & 0 deletions src/deb/control/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: [[name]]
Version: [[version]]
Section: misc
Priority: low
Architecture: all
Description: [[description]]
Maintainer: [email protected]
Depends:

0 comments on commit b53cc76

Please sign in to comment.