gpt4 book ai didi

java - Maven 错误 "Cannot resolve project dependencies:"-- "org.eclipse.jst.web_sdk.feature.feature.group"

转载 作者:行者123 更新时间:2023-12-02 09:50:32 26 4
gpt4 key购买 nike

我按照 Import into Eclipse and Set up Development Environment 上的说明进行操作当我到达说

的步骤时
  1. Run the setup.sh script if you havn't created the target platform: sh setup.sh.

它将在 macOS 上的终端中运行。

我收到以下错误消息:

[ERROR] Cannot resolve project dependencies:

[ERROR] Software being installed: com.amazonaws.eclipse.devide raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT

[ERROR] Missing requirement: com.amazonaws.eclipse.devide raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT requires 'org.eclipse.jst.web_sdk.feature.feature.group 0.0.0' but it could not be found

[ERROR]

[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.

[ERROR] Cannot resolve dependencies of MavenProject: com.amazonaws.eclipse:com.amazonaws.eclipse.devide:1.0.0-SNAPSHOT @ /Users/shinehah/git/aws-toolkit-eclipse-java-ee-and-report/releng/com.amazonaws.eclipse.devide/pom.xml: See log for details -> [Help 1]

[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/MavenExecutionException

看起来我需要添加“org.eclipse.jst.web_sdk.feature.feature.group”作为依赖项,但我找不到要下载的模块。

这是 pom.xml 文件中的原始内容:

<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.amazonaws.eclipse</groupId>
<artifactId>com.amazonaws.eclipse.releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>com.amazonaws.eclipse.devide</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>

这是我添加内容后的 pom.xml 文件:

<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.amazonaws.eclipse</groupId>
<artifactId>com.amazonaws.eclipse.releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>com.amazonaws.eclipse.devide</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>

<dependencies>
<dependency>
<groupId>com.amazonaws.eclipse</groupId>
<artifactId>org.eclipse.jst.web_sdk.feature.feature.group</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>

这是 Eclipse 中 Project Explorer 的屏幕截图。我没有任何项目,只有这个工作区。

Project Explorer pane

这是 Eclipse IDE 底部标题为“Markers”的 Pane :

Markers pane我需要做什么才能按照步骤指示成功运行“sh setup.sh”?

最佳答案

这个项目与其他项目不同。这是一个 Eclipse 插件项目。首先,克隆该项目后,转到指向该插件项目目录的命令提示符并运行以下命令。

mvn clean 包

构建成功后,在 eclipse 中导入为插件项目。这是导入eclipse插件项目的正常方式。建议仔细阅读 github 链接中的 ReadMe.md 文件。 https://github.com/aws/aws-toolkit-eclipse

我建议,首先浏览以下有关 tycho 以及如何配置和开发 eclipse 插件的有用链接。

https://wiki.eclipse.org/Developing_Tycho https://www.vogella.com/tutorials/EclipseTycho/article.html

您还可以引用以下 stackoverflow 链接。

Dependencies from pom.xml not considered by Eclipse in Tycho Project

关于java - Maven 错误 "Cannot resolve project dependencies:"-- "org.eclipse.jst.web_sdk.feature.feature.group",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56349574/

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