Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-245

Profiler fails to launch when using Maven 3.5.x

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 11.3
    • apisupport - Maven
    • None

    Description

      This issue was originally reported as https://netbeans.org/bugzilla/show_bug.cgi?id=271059

      Essentially the Java profiler works fine for Maven projects if you use Maven 3.3.9 but fails as soon as you use version 3.5.0 and up. This is because mvn.cmd was substantially modified in that version.

      Running under Maven 3.5.2 I get the following error:

      *** Profiler message (Tue Jan 02 23:15:41 EST 2018): Starting target application...
      C:\Program Files\Java\jdk-9.0.1\bin\java.exe -agentpath:C:/Program Files/netbeans-159/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll -Xbootclasspath/a:C:\Program Files\netbeans-159\profiler\lib\jfluid-server.jar;C:\Program Files\netbeans-159\profiler\lib\jfluid-server-15.jar org.netbeans.lib.profiler.server.ProfilerServer C:/Program Files/netbeans-159/profiler/lib/deployed/jdk16/windows-amd64 5141 10 ____Profiler+Calibration+Run____
      cd C:\Users\Gili\Documents\pyramid\server; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_141" "M2_HOME=C:\\Program Files\\apache-maven-3.5.2" cmd /c "\"\"C:\\Program Files\\apache-maven-3.5.2\\bin\\mvn.cmd\" -Dexec.args=\"-agentpath:\\\"C:/Program Files/netbeans-159/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\Program Files\\netbeans-159\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\\Users\\Gili\\AppData\\Local\\NetBeans\\Cache\\dev\\mavencachedirs\\354137174\\org-netbeans-modules-profiler  -ea -classpath %classpath com.holdmyspot.pyramid.server.Main\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_141\\bin\\java.exe\" -Dexec.workingdir=C:\\Users\\Gili\\Documents\\Pyramid\\server\\target -Dmaven.ext.class.path=\"C:\\Program Files\\netbeans-159\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 process-classes org.codehaus.mojo:exec-maven-plugin:1.5.0:exec\""
      The syntax of the command is incorrect.
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            cowwoc Gili
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment