Raj*_*eun 10 mule maven anypoint-studio
我想按照这个教程创建一个Maven项目https://docs.mulesoft.com/mule-user-guide/v/3.7/building-a-mule-application-with-maven-in-studio那个时候当Studio自动构建Maven项目时,我收到此错误:updating maven project has encountered a problem There was an error running the studio:studio goal on project test并在控制台中:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.mycompany:test:1.0.0-SNAPSHOT (C:\Users\Rajeun\AnypointStudio\workspace\test\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 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 (x86)\Java\jre1.8.0_40/../lib/tools.jar -> [Help 2]
[ERROR] Unknown packaging: mule @ line 8, 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
Run Code Online (Sandbox Code Playgroud)
我解决了这个问题,我不确切知道什么有效,但是我改变了java版本,并为每个项目执行以下命令:
mvn clean install
mvn eclipse:eclipse
Run Code Online (Sandbox Code Playgroud)
然后我刷新我的项目这可以帮助:http://www.avajava.com/tutorials/lessons/how-do-i-update-my-maven-project-to-work-in-eclipse.html
| 归档时间: |
|
| 查看次数: |
25033 次 |
| 最近记录: |