|
|
|
@ -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>
|
|
|
|
|