improved deb packaging and bound assembly:single to package
This commit is contained in:
parent
3c574ba398
commit
17e8b7f40c
32
pom.xml
32
pom.xml
|
@ -405,12 +405,20 @@
|
|||
<descriptor>${basedir}/src/main/assemblies/zip-bin.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
|
@ -425,7 +433,10 @@
|
|||
-->
|
||||
<artifactId>jdeb</artifactId>
|
||||
<groupId>org.vafer</groupId>
|
||||
<version>0.9-SNAPSHOT</version>
|
||||
<version>0.8</version>
|
||||
<configuration>
|
||||
<deb>${project.build.directory}/releases/${artifactId}-${version}.deb</deb>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
@ -434,8 +445,6 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<dataSet>
|
||||
<!-- tarfileset(dir: explodedDistDir, prefix: "/usr/share/elasticsearch",
|
||||
includes: "*.txt, *.textile", username: "root", group: "root") -->
|
||||
<data>
|
||||
<src>${project.basedir}/</src>
|
||||
<includes>*.txt, *.textile</includes>
|
||||
|
@ -447,7 +456,6 @@
|
|||
<group>root</group>
|
||||
</mapper>
|
||||
</data>
|
||||
<!-- tarfileset(dir: explodedDistBinDir, prefix: "/usr/share/elasticsearch/bin", excludes: "*.bat", filemode: "755", username: "root", group: "root") -->
|
||||
<data>
|
||||
<src>${project.basedir}/bin</src>
|
||||
<type>directory</type>
|
||||
|
@ -460,7 +468,6 @@
|
|||
<group>root</group>
|
||||
</mapper>
|
||||
</data>
|
||||
<!-- tarfileset(dir: explodedDistLibDir, prefix: "/usr/share/elasticsearch/lib", includes: "*.jar, sigar/*", username: "root", group: "root") -->
|
||||
<data>
|
||||
<src>${project.build.directory}/</src>
|
||||
<includes>${project.build.finalName}.jar, ${project.basedir}/lib/sigar/*</includes>
|
||||
|
@ -473,8 +480,8 @@
|
|||
</mapper>
|
||||
</data>
|
||||
<data>
|
||||
<!-- via copy dependencies-->
|
||||
<src>${project.build.directory}/lib</src>
|
||||
<includes>lucene*, log4j*, jline*, jna*</includes>
|
||||
<type>directory</type>
|
||||
<mapper>
|
||||
<type>perm</type>
|
||||
|
@ -483,10 +490,6 @@
|
|||
<group>root</group>
|
||||
</mapper>
|
||||
</data>
|
||||
<!--
|
||||
tarfileset(dir: "pkg/debian/default", includes: "elasticsearch", prefix: "/etc/default", username: "root", group: "root")
|
||||
-->
|
||||
|
||||
<data>
|
||||
<src>${project.basedir}/src/deb/default/</src>
|
||||
<type>directory</type>
|
||||
|
@ -497,9 +500,6 @@
|
|||
<group>root</group>
|
||||
</mapper>
|
||||
</data>
|
||||
<!--
|
||||
tarfileset(dir: "pkg/debian/init.d", includes: "elasticsearch", prefix: "/etc/init.d", filemode: "755", username: "root", group: "root")
|
||||
-->
|
||||
<data>
|
||||
<src>${project.basedir}/src/deb/init.d/</src>
|
||||
<type>directory</type>
|
||||
|
@ -511,10 +511,6 @@
|
|||
<group>root</group>
|
||||
</mapper>
|
||||
</data>
|
||||
|
||||
<!--
|
||||
tarfileset(dir: explodedDistConfigDir, prefix: "/etc/elasticsearch", username: "root", group: "root")
|
||||
-->
|
||||
<data>
|
||||
<src>${project.basedir}/config</src>
|
||||
<type>directory</type>
|
||||
|
|
Loading…
Reference in New Issue