support RPM package (#816)

pull/825/head
Sahil Jha 6 years ago committed by hengyunabc
parent 046427c445
commit 5bbbf9d1a8

@ -21,6 +21,9 @@ matrix:
# - ZULUJDK=6
before_install:
# installing the rpm package
- sudo apt-get update -qq
- sudo apt-get install -qq rpm
# adding $HOME/.sdkman to cache would create an empty directory, which interferes with the initial installation
- "[[ -d $HOME/.sdkman/bin/ ]] || rm -rf $HOME/.sdkman/"
- curl -sL https://get.sdkman.io | bash

@ -111,6 +111,69 @@
</dataSet>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<license>(c) Alibaba, GPLv3</license>
<distribution>Arthas</distribution>
<group>Development/tools</group>
<packager>Alibaba</packager>
<prefix>/usr/share</prefix>
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
</defineStatements>
<mappings>
<mapping>
<directory>/usr/share/arthas</directory>
<filemode>755</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>${project.build.directory}/arthas-${project.version}-bin</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/local/bin</directory>
<filemode>755</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<softlinkSource>
<location>/usr/share/arthas/as.sh</location>
</softlinkSource>
</sources>
</mapping>
<mapping>
<directory>/usr/share/man/man1</directory>
<filemode>755</filemode>
<username>root</username>
<groupname>root</groupname>
<sources>
<source>
<location>../packaging/src/deb/man1/arthas.1</location>
</source>
</sources>
</mapping>
</mappings>
<requires>
<require>curl</require>
<require>telnet</require>
<require>unzip</require>
</requires>
</configuration>
</plugin>
</plugins>
</build>
</profile>

Loading…
Cancel
Save