upgrade one-java-agent

oneagent
hengyunabc 4 years ago
parent 4d47eb5ec8
commit 688aa745d6

@ -140,7 +140,7 @@
<dependency>
<groupId>com.alibaba.oneagent</groupId>
<artifactId>one-java-agent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2-SNAPSHOT</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>

@ -4,7 +4,7 @@ import static com.taobao.text.ui.Element.label;
import com.alibaba.arthas.deps.org.slf4j.Logger;
import com.alibaba.arthas.deps.org.slf4j.LoggerFactory;
import com.alibaba.oneagent.OneAgent;
import com.alibaba.oneagent.BootstrapAgent;
import com.alibaba.oneagent.plugin.Plugin;
import com.alibaba.oneagent.plugin.PluginManager;
import com.taobao.arthas.core.shell.command.AnnotatedCommand;
@ -66,7 +66,7 @@ public class PluginsCommand extends AnnotatedCommand {
public void process(CommandProcess process) {
int exitCode = 0;
try {
PluginManager pluginMaanger = OneAgent.getInstance().pluginMaanger();
PluginManager pluginMaanger = BootstrapAgent.getAgent().pluginManager();
if (this.startPlugin != null) {
Plugin findPlugin = pluginMaanger.findPlugin(startPlugin);
if (findPlugin != null) {

@ -1,5 +1,5 @@
specification=1
name=arthas
version=3.4.1
version=3.5.1
classpath=arthas-core.jar
pluginActivator=com.taobao.arthas.oneagent.ArthasActivator
Loading…
Cancel
Save