mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
support RPM package (#816)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user