2016-01-03 66 views
0

大約有100萬個關於NetBeans bug跟蹤器問題的bug報告,但他們都沒有給我一個解決方案。嘗試配置netbeans項目時出現MojoExecutionException

的問題是,當我試圖分析我的計劃是這樣的:

image description

我得到這個:

cd C:\MYSELF\programing\java\AutoCall\AutoClient; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_31" cmd /c "\"\"C:\\Users\\Jakub\\AppData\\Roaming\\NetBeans\\7.4\\maven\\bin\\mvn.bat\" -Dexec.args=\"-agentpath:C:/Users/Jakub/AppData/Roaming/NetBeans/7.4/lib/deployed/jdk16/windows-amd64/profilerinterface.dll=C:\\Users\\Jakub\\AppData\\Roaming\\NetBeans\\7.4\\lib,5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\\MYSELF\\programing\\java\\AutoCall\\AutoClient\\nbproject\\private\\profiler -classpath %classpath cz.autoclient.Main\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_31\\bin\\java.exe\" -DnetbeansProjectMappings= -Dmaven.ext.class.path=C:\\Users\\Jakub\\AppData\\Roaming\\NetBeans\\7.4\\maven-nblib\\netbeans-eventspy.jar org.codehaus.mojo:exec-maven-plugin:1.2.1: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. 
Scanning for projects... 

------------------------------------------------------------------------ 
Building Auto Client 3.0 
------------------------------------------------------------------------ 

--- exec-maven-plugin:1.2.1:exec (default-cli) @ autoclient --- 
Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 14) 
Profiler Agent Error: Timed out trying to establish connection with client 
Profiler Agent: Initializing... 
Profiler Agent: Options: >C:\Users\Jakub\AppData\Roaming\NetBeans\7.4\lib,5140,10< 
Profiler Agent: Initialized successfully 
------------------------------------------------------------------------ 
BUILD FAILURE 
------------------------------------------------------------------------ 
Total time: 12.012s 
Finished at: Sun Jan 03 20:57:36 CET 2016 
Final Memory: 5M/75M 
------------------------------------------------------------------------ 
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project autoclient: Command execution failed. Process exited with an error: -1 (Exit value: -1) -> [Help 1] 

To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 

For more information about the errors and possible solutions, please read the following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

這個錯誤似乎是隨機發生的 - 我有幾個成功的性能分析會話,然後再次發生。

回答

0

我有同樣的問題,當我tryed啓動中NetBeans配置文件來分析內存,我得到了如下信息:

未能執行目標org.codehaus.mojo:EXEC-Maven的插件:1.2 .1:項目saf-desktop上的exec(default-cli):目標org.codehaus.mojo的參數'executable':exec-maven-plugin:1.2.1:exec缺失或無效 - > [Help 1]

所以,相反,要運行de profile模式,我正常啓動應用程序,然後,我在當前runnig主應用程序中調用配置文件模式。

相關問題