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