Mule Maven - 使用Maven运行项目时出错

时间:2016-11-19 06:31:37

标签: maven mule anypoint-studio

尝试使用Anypoint Studio IDE与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

2 个答案:

答案 0 :(得分:0)

检查您是否安装了Java JDK 6而不是JRE 6.然后检查您是否已正确配置和检查Java Runtime(首选项 - > Java - >已安装的JRE)。

答案 1 :(得分:0)

您使用的是Windows吗?当我没有以管理员身份运行IDE时,我在该操作系统上看到了类似的问题。

在项目目录中运行mvn clean package会产生相同的结果吗?