2018-08-31 11:49:48 +08:00
|
|
|
|
<?xml version="1.0"?>
|
2020-12-08 11:43:36 +08:00
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-all</artifactId>
|
2020-10-18 23:29:12 +08:00
|
|
|
|
<version>${revision}</version>
|
2019-01-18 16:30:58 +08:00
|
|
|
|
<relativePath>../pom.xml</relativePath>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</parent>
|
|
|
|
|
<artifactId>arthas-core</artifactId>
|
|
|
|
|
<name>arthas-core</name>
|
|
|
|
|
|
2020-03-31 23:28:10 +08:00
|
|
|
|
<properties>
|
|
|
|
|
<arthas.deps.package>com.alibaba.arthas.deps</arthas.deps.package>
|
|
|
|
|
</properties>
|
|
|
|
|
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<build>
|
|
|
|
|
<finalName>arthas-core</finalName>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>1.6</source>
|
|
|
|
|
<target>1.6</target>
|
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
|
<showDeprecation>true</showDeprecation>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2020-07-17 16:42:08 +08:00
|
|
|
|
<version>3.2.3</version>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<phase>package</phase>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<goals>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<goal>shade</goal>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<finalName>arthas-core-shade</finalName>
|
|
|
|
|
<transformers>
|
2019-11-26 02:15:19 +08:00
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<mainClass>com.taobao.arthas.core.Arthas</mainClass>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<manifestEntries>
|
|
|
|
|
<Created-By>core engine team, middleware group, alibaba inc.</Created-By>
|
|
|
|
|
<Implementation-Version>${project.version}</Implementation-Version>
|
|
|
|
|
<Implementation-Vendor-Id>com.taobao.arthas</Implementation-Vendor-Id>
|
|
|
|
|
<Specification-Version>${project.version}</Specification-Version>
|
|
|
|
|
<Specification-Title>arthas-core</Specification-Title>
|
|
|
|
|
</manifestEntries>
|
|
|
|
|
</transformer>
|
|
|
|
|
</transformers>
|
2020-03-31 23:28:10 +08:00
|
|
|
|
<relocations>
|
|
|
|
|
<!-- https://github.com/hengyunabc/arthas-repackage-deps -->
|
|
|
|
|
<relocation>
|
|
|
|
|
<pattern>org.slf4j</pattern>
|
|
|
|
|
<shadedPattern>${arthas.deps.package}.org.slf4j</shadedPattern>
|
|
|
|
|
</relocation>
|
|
|
|
|
<relocation>
|
|
|
|
|
<pattern>ch.qos.logback</pattern>
|
|
|
|
|
<shadedPattern>${arthas.deps.package}.ch.qos.logback</shadedPattern>
|
|
|
|
|
</relocation>
|
2020-07-29 10:37:09 +08:00
|
|
|
|
<relocation>
|
|
|
|
|
<pattern>io.netty</pattern>
|
|
|
|
|
<shadedPattern>${arthas.deps.package}.io.netty</shadedPattern>
|
|
|
|
|
</relocation>
|
2020-03-31 23:28:10 +08:00
|
|
|
|
</relocations>
|
2019-11-10 01:16:21 +08:00
|
|
|
|
<filters>
|
|
|
|
|
<filter>
|
|
|
|
|
<artifact>com.alibaba.middleware:termd-core</artifact>
|
|
|
|
|
<excludes>
|
|
|
|
|
<exclude>io/termd/core/http/*.js</exclude>
|
|
|
|
|
<exclude>io/termd/core/http/*.css</exclude>
|
|
|
|
|
<exclude>io/termd/core/http/*.html</exclude>
|
|
|
|
|
<exclude>io/termd/core/http/*.png</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
</filter>
|
|
|
|
|
</filters>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
2020-03-31 23:28:10 +08:00
|
|
|
|
<!-- 把原来的logger command相关类还原,因为被shade plugin relocation修改了package -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<configuration>
|
|
|
|
|
<tasks>
|
|
|
|
|
<unzip src="${project.build.directory}/${project.build.finalName}-shade.${project.packaging}" dest="${project.build.directory}/tmp_out" />
|
|
|
|
|
<copy overwrite="true" todir="${project.build.directory}/tmp_out/com/taobao/arthas/core/command/logger">
|
|
|
|
|
<fileset dir="${project.build.directory}/classes/com/taobao/arthas/core/command/logger" />
|
|
|
|
|
</copy>
|
|
|
|
|
<zip basedir="${project.build.directory}/tmp_out" destfile="${project.build.directory}/${project.build.finalName}-shade.${project.packaging}" />
|
|
|
|
|
</tasks>
|
|
|
|
|
</configuration>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>run</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
2019-12-02 20:32:06 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-spy</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
2018-11-09 15:57:03 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-common</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2021-05-13 20:21:35 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-vmtool</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2020-04-23 21:00:37 +08:00
|
|
|
|
<dependency>
|
2020-10-21 23:32:58 +08:00
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>bytekit-core</artifactId>
|
2020-04-23 21:00:37 +08:00
|
|
|
|
</dependency>
|
2020-10-21 23:32:58 +08:00
|
|
|
|
|
2020-04-23 21:00:37 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>net.bytebuddy</groupId>
|
|
|
|
|
<artifactId>byte-buddy-agent</artifactId>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2019-02-06 01:32:40 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-memorycompiler</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2019-08-29 20:45:27 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-tunnel-client</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
</dependency>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.middleware</groupId>
|
|
|
|
|
<artifactId>termd-core</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.middleware</groupId>
|
|
|
|
|
<artifactId>cli</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.text</groupId>
|
2018-09-03 02:06:00 +08:00
|
|
|
|
<artifactId>text-ui</artifactId>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.fifesoft</groupId>
|
|
|
|
|
<artifactId>rsyntaxtextarea</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<!--<dependency>-->
|
|
|
|
|
<!--<groupId>org.codehaus.groovy</groupId>-->
|
|
|
|
|
<!--<artifactId>groovy-all</artifactId>-->
|
|
|
|
|
<!--</dependency>-->
|
2020-09-11 20:23:30 +08:00
|
|
|
|
<!-- slf4j-api/logback-classic/logback-core 不能打包到应用里,因为真正使用的是 arthas-repackage-deps -->
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2020-09-11 20:23:30 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
|
<artifactId>logback-classic</artifactId>
|
2020-09-11 20:23:30 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
|
<artifactId>logback-core</artifactId>
|
2020-09-11 20:23:30 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependency>
|
2020-02-14 02:40:08 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.arthas</groupId>
|
|
|
|
|
<artifactId>arthas-repackage-logger</artifactId>
|
|
|
|
|
</dependency>
|
2019-12-27 15:11:18 +08:00
|
|
|
|
|
2019-09-06 19:42:02 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
|
<version>1.2.17</version>
|
2019-09-20 17:14:19 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
|
|
<version>2.12.1</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
2019-09-06 19:42:02 +08:00
|
|
|
|
</dependency>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>ognl</groupId>
|
|
|
|
|
<artifactId>ognl</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
|
<artifactId>junit</artifactId>
|
2018-09-14 15:16:23 +08:00
|
|
|
|
<scope>test</scope>
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependency>
|
2019-12-27 15:11:18 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.assertj</groupId>
|
|
|
|
|
<artifactId>assertj-core</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2020-04-23 21:00:37 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2020-05-19 17:30:08 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.taobao.arthas</groupId>
|
2021-03-17 17:49:21 +08:00
|
|
|
|
<artifactId>math-game</artifactId>
|
2020-05-19 17:30:08 +08:00
|
|
|
|
<version>${project.version}</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2020-05-19 21:51:54 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.zeroturnaround</groupId>
|
|
|
|
|
<artifactId>zt-zip</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
2019-12-27 15:11:18 +08:00
|
|
|
|
|
2020-12-02 00:55:00 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jboss.modules</groupId>
|
|
|
|
|
<artifactId>jboss-modules</artifactId>
|
|
|
|
|
<version>1.11.0.Final</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2018-08-31 11:49:48 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.benf</groupId>
|
|
|
|
|
<artifactId>cfr</artifactId>
|
|
|
|
|
</dependency>
|
2018-10-17 18:40:01 +08:00
|
|
|
|
<!-- for com.sun.tools.attach.VirtualMachine api -->
|
2018-09-14 15:16:23 +08:00
|
|
|
|
<dependency>
|
2018-10-17 18:40:01 +08:00
|
|
|
|
<groupId>com.github.olivergondza</groupId>
|
|
|
|
|
<artifactId>maven-jdk-tools-wrapper</artifactId>
|
|
|
|
|
<version>0.1</version>
|
2018-09-14 15:16:23 +08:00
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
2020-05-19 21:51:54 +08:00
|
|
|
|
|
2018-08-31 11:49:48 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
</project>
|