Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-159-on-20180102)
Updates: Updates available
Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
Runtime: Java(TM) SE Runtime Environment 9.0.1+11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\devProduct Version: Apache NetBeans IDE Dev (Build incubator-netbeans-release-159-on-20180102) Updates: Updates available Java: 9.0.1; Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 Runtime: Java(TM) SE Runtime Environment 9.0.1+11 System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
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
- is blocked by
-
MNG-6385 Windows mvn.cmd fail with incorrect command syntax.
- Open
- relates to
-
NETBEANS-2443 Can't start profiler
- Open
-
NETBEANS-3254 Remove requirement for allowAmbiguousCommands in Maven support
- Closed