2016-11-19 41 views
1

嘗試使用Anypoint Studio IDE使用Maven運行項目。Mule Maven - 使用Maven的錯誤運行項目

但我收到此錯誤控制檯:

[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project com.mycompany:mymuleproject:1.0.0-SNAPSHOT (E:\worldspace\mymuleproject\pom.xml) has 2 errors 
[ERROR]  Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.2 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.5.0 at specified path C:\Program Files\Java\jre1.8.0_102/../lib/tools.jar -> [Help 2] 
[ERROR]  Unknown packaging: mule @ line 9, column 16 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException 
+1

檢查http://stackoverflow.com/questions/33614394/error-creating-a-maven-project – Rohan

+1

請提供pom.xml文件和更多信息。 – jordiburgos

回答

0

檢查,如果你已經安裝了Java JDK 6,而不是JRE 6.然後檢查是否已正確配置和檢查您的Java運行時(首選項 - > Java的 - >已安裝的JRE)。

+0

目前我正在使用Java JDK 1.8而不是JRE8。 – vijay

0

您使用的是Windows嗎?在沒有以管理員身份運行IDE時,我在該操作系統上看到過類似的問題。

運行mvn clean package在您的項目目錄中產生相同的結果嗎?