【问题标题】:Netbeans Profiler for a Maven project用于 Maven 项目的 Netbeans Profiler
【发布时间】:2013-12-31 20:21:41
【问题描述】:

当我尝试将 Profiler 附加到我的项目时,Netbeans 提示我在我的主类和 org.codehaus.plexus.classworlds.launcher.Launcher 之间进行选择。我想知道是否有人知道我应该使用哪一个以及为什么。

谢谢,

【问题讨论】:

    标签: java maven netbeans profiling


    【解决方案1】:

    org.codehaus.plexus.classworlds.launcher.Launcher 是 maven 构建的主要类。 netbeans 执行 maven 构建 jvm,然后通过 exec-maven-plugin 启动主类在其中执行的 jvm。

    因此,如果您想对构建进行概要分析,请选择 classworld 的 Launcher,否则请选择您的主类。

    【讨论】:

    • 分析构建或其他方式有什么区别?
    • 每个案例都是不同的 JVM :) 所以你要么分析你的应用程序,要么分析你的 maven 构建。
    猜你喜欢
    • 2014-11-19
    • 2018-05-27
    • 1970-01-01
    • 2017-12-10
    • 2011-07-26
    • 2012-07-24
    • 1970-01-01
    • 2013-02-17
    • 2014-11-27
    相关资源
    最近更新 更多