You need to log in before you can comment on or make changes to this bug.
Build 200904010000 (M3),Win Vista, JDK1.6.0_13 Create new Maven project from Quickstart archetype and invoke profile action. Left everything default. Error appears and progress bar progresses indefinitely. NetBeans: Executing 'cmd /c mvn.bat -Dexec.args= -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\Users\jp154641\Documents\NetBeansProjects\mavenproject6\nbproject\private\profiler -agentpath:C:/Program Files/NetBeans 6.7 M3/profiler3/lib/deployed/jdk16/windows/profilerinterface.dll=C:/Program Files/NetBeans 6.7 M3/profiler3/lib,5140,10 -classpath %classpath com.mycompany.mavenproject6.App -Dprofiler.action=profile -Dexec.executable=C:\Program Files\Java\jdk1.6.0_13\bin\java.exe -Dnetbeans.execution=true process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... ------------------------------------------------------------------------ Building mavenproject6 task-segment: [process-classes, org.codehaus.mojo:exec-maven-plugin:1.1:exec] ------------------------------------------------------------------------ [resources:resources] Using default encoding to copy filtered resources. [compiler:compile] Compiling 1 source file to C:\Users\jp154641\Documents\NetBeansProjects\mavenproject6\target\classes [exec:exec] Error occurred during initialization of VM Could not find agent library in absolute path: C:/Program ------------------------------------------------------------------------ [ERROR]BUILD ERROR ------------------------------------------------------------------------ Result of cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_13\bin\java.exe" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:Usersjp154641DocumentsNetBeansProjectsmavenproject6nbprojectprivateprofiler -agentpath:C:/Program Files/NetBeans 6.7 M3/profiler3/lib/deployed/jdk16/windows/profilerinterface.dll=C:/Program Files/NetBeans 6.7 M3/profiler3/lib,5140,10 -classpath C:\Users\jp154641\Documents\NetBeansProjects\mavenproject6\target\classes com.mycompany.mavenproject6.App" execution is: '1'. ------------------------------------------------------------------------ For more information, run Maven with the -e switch ------------------------------------------------------------------------ Total time: 4 seconds Finished at: Wed Apr 01 14:47:26 CEST 2009 Final Memory: 6M/12M ------------------------------------------------------------------------ For Maven Web application project,there's no error message and Ant projects work OK.
This is caused by the space in path in the IDE installation. Fixed follows in: http://hg.netbeans.org/profiler-main/rev/cd99c1a39d48
Integrated into 'main-golden', will be available in build *200904080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cd99c1a39d48 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #161670 - profiling maven application fails if the IDE is installed in path with space
The path is still processed badly - now it considers Files/Netbeans as task, but build still fails - reopening. NetBeans: Executing 'cmd /c mvn.bat -Dexec.args= -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\Users\jp154641\Documents\NetBeansProjects\mavenproject13\nbproject\private\profiler "-agentpath:C:/Program Files/NetBeans Dev 200904080201/profiler3/lib/deployed/jdk16/windows/profilerinterface.dll=C:/Program Files/NetBeans Dev 200904080201/profiler3/lib,5140,10" -classpath %classpath com.mycompany.mavenproject13.App -Dprofiler.action=profile -Dexec.executable=C:\Program Files\Java\jdk1.6.0_13\bin\java.exe -Dnetbeans.execution=true process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec' NetBeans: JAVA_HOME =C:\Program Files\Java\jdk1.6.0_13 Scanning for projects... ------------------------------------------------------------------------ [ERROR]BUILD FAILURE ------------------------------------------------------------------------ Invalid task 'Files/NetBeans': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal ------------------------------------------------------------------------ For more information, run Maven with the -e switch ------------------------------------------------------------------------ Total time: < 1 second Finished at: Wed Apr 08 11:17:07 CEST 2009 Final Memory: 1M/4M ------------------------------------------------------------------------
Integrated into 'main-golden', will be available in build *200904081400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cd99c1a39d48 User: Jaroslav Bachorik <yardus@netbeans.org> Log: #161670 - profiling maven application fails if the IDE is installed in path with space
The root cause is the same as in #156366 - the maven can not handle executing a java application with arguments containing space. This is a real bummer as NetBeans gets installed to path with spaces by default on windows (...\Program Files\NetBeans 6.7\...) and all the profiler files are installed there as well - resulting in no profiler functionality at all.
Found the way to escape quotes being passed as exec.args to mojo:exec plugin. This seems to resolve the problem with space in path. Fixed in http://hg.netbeans.org/profiler-main/rev/2664e31191cd
Integrated into 'main-golden', will be available in build *200904160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/2664e31191cd User: Jaroslav Bachorik <yardus@netbeans.org> Log: #161670 - maven specific handling of space in path in exec.args property
*** Issue 164151 has been marked as a duplicate of this issue. ***
v.