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

Profile file action of a maven project is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0
    • None
    • None

    Description

      When trying to profile a single file in a maven project an incorrect command line is generated.

      following the generated command as shown in the IDE output

      cd D:\Progetti\PERS\NetCat-12\QuickstartPrj; "JAVA_HOME=C:
      Program Files\\Java
      jdk-11" cmd /c "\"C:
      Program Files\\NetBeans-12.beta1\\java\\maven\\bin\\mvn.cmd\" -Dexec.args=\"-agentpath:\\\"C:/Program Files/NetBeans-12.beta1/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:
      Program Files\\NetBeans-12.beta1\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:\\Progetti\\PERS\\NetCat-12\\QuickstartPrj\\nbproject\\private
      profiler -classpath %classpath it.mambretti.quickstartprj.TestMain\" -Dexec.executable=\"C:
      Program Files\\Java\\jdk-11\\bin\\java.exe\" -Dexec.classpathScope=runtime -Dmaven.ext.class.path=\"C:
      Program Files\\NetBeans-12.beta1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec"
      Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
      The syntax of the command is incorrect.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Irian Luca Mambretti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: