add packaging

pull/18/head
hengyunabc 6 years ago
parent 521f52d985
commit 3da94b822b

@ -0,0 +1,38 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-all</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<artifactId>arthas-packaging</artifactId>
<name>arthas-packaging</name>
<build>
<finalName>arthas-${project.version}</finalName>
<plugins>
<!-- Assembly plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>bin</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,57 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd">
<id>bin</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>
<files>
<file>
<source>../spy/target/arthas-spy.jar</source>
<outputDirectory>/</outputDirectory>
<destName>arthas-spy.jar</destName>
</file>
<file>
<source>../core/target/arthas-core-jar-with-dependencies.jar</source>
<outputDirectory>/</outputDirectory>
<destName>arthas-core.jar</destName>
</file>
<file>
<source>../agent/target/arthas-agent-jar-with-dependencies.jar</source>
<outputDirectory>/</outputDirectory>
<destName>arthas-agent.jar</destName>
</file>
<file>
<source>../client/target/arthas-client-jar-with-dependencies.jar</source>
<outputDirectory>/</outputDirectory>
<destName>arthas-client.jar</destName>
</file>
<file>
<source>../bin/install-local.sh</source>
<outputDirectory>/</outputDirectory>
<fileMode>0755</fileMode>
</file>
<file>
<source>../bin/as.sh </source>
<outputDirectory>/</outputDirectory>
<fileMode>0755</fileMode>
</file>
<file>
<source>../bin/as.bat</source>
<outputDirectory>/</outputDirectory>
</file>
</files>
<fileSets>
<fileSet>
<directory>../site/target/site/sphinx/</directory>
<outputDirectory>/doc</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
</fileSets>
</assembly>

@ -17,6 +17,7 @@
<module>client</module>
<module>testcase</module>
<module>site</module>
<module>packaging</module>
</modules>
<properties>

Loading…
Cancel
Save