gpt4 book ai didi

maven - 创建 Maven 项目时出错

转载 作者:行者123 更新时间:2023-12-04 02:47:34 25 4
gpt4 key购买 nike

我正在尝试按照本教程创建一个 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

最佳答案

在您的 anypoint 工作室中,转到窗口 >> 首选项 >> 在左侧菜单中选择 java >> 安装 jre 将其更改为 jdk 路径 enter image description here

关于maven - 创建 Maven 项目时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33614394/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com