简体   繁体   English

用于Maven项目的Netbeans Profiler

[英]Netbeans Profiler for a Maven project

When I try to attach a Profiler to my project, Netbeans prompts me to choose bewtween my main class and org.codehaus.plexus.classworlds.launcher.Launcher . 当我尝试将Profiler附加到我的项目时,Netbeans提示我在主类和org.codehaus.plexus.classworlds.launcher.Launcher进行选择。 I was wondering if someone knows which one I should use and why. 我想知道是否有人知道我应该使用哪个,为什么。

Thanks, 谢谢,

org.codehaus.plexus.classworlds.launcher.Launcher is the main class for the maven build. org.codehaus.plexus.classworlds.launcher.Launcher是Maven构建的主要类。 netbeans executes the maven build jvm which in turn via exec-maven-plugin starts the jvm that your main class executes in. netbeans执行maven build jvm,然后通过exec-maven-plugin启动在您的主类中执行的jvm。

So if you want to profile the build you choose the classworld's Launcher, otherwise you choose your your main class. 因此,如果要分析构建,请选择classworld的Launcher,否则请选择您的主类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM