You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/arthas-vmtool/README_CN.md

63 lines
1.6 KiB
Markdown

##step1 在您的pom.xml中增加profile配置
```
<profiles>
<!-- macos -->
<profile>
<id>macos</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<os_family>macos</os_family>
</properties>
</profile>
<!-- linux -->
<profile>
<id>linux</id>
<activation>
<os>
<name>linux</name>
</os>
</activation>
<properties>
<os_family>linux</os_family>
</properties>
</profile>
<!-- windows -->
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<os_family>windows</os_family>
</properties>
</profile>
</profiles>
```
##step2 在您的pom.xml中引入依赖
PS一定要配置好profile不然无法自动生成`<classifier>`配置。
```
<dependency>
<groupId>com.taobao.arthas</groupId>
<artifactId>mana-pool-analyzer</artifactId>
<version>${arthas.vision}</version>
<classifier>${os_family}-${os.arch}</classifier>
</dependency>
```
##step3 如果没有合适的版本
1. 如果是32位的操作系统不好意思目前暂不支持。
2. 如果是64位操作系统请先尝试`mvn clean compile package install -DskipTests=true -U`把依赖安装到本地;
3. 如果报错请先确保您本地的g++编译器能够正常工作,再重新尝试`mvn clean compile package install -DskipTests=true -U`
如有问题请联系`1936978077@qq.com`。