![](/img/trans.png)
[英]How to resolve org.eclipse.cdt.gnu.feature.group not found
[英]Maven error “Cannot resolve project dependencies:” — “org.eclipse.jst.web_sdk.feature.feature.group”
当我说到步骤“ 导入到Eclipse和设置开发环境”中的说明时,
- 如果尚未创建目标平台,请运行setup.sh脚本:sh setup.sh。
它要在macOS的终端中运行。
我收到以下错误消息:
[错误]无法解决项目依赖性:
[错误]正在安装的软件:com.amazonaws.eclipse.devide raw:1.0.0.'SNAPSHOT'/ format(n [.n = 0; [。n = 0; [-S]]]):1.0.0 -SNAPSHOT
[错误]缺少要求:com.amazonaws.eclipse.devide raw:1.0.0.'SNAPSHOT'/ format(n [.n = 0; [。n = 0; [-S]]]):1.0.0- SNAPSHOT需要'org.eclipse.jst.web_sdk.feature.feature.group 0.0.0',但找不到
[错误]
[错误]请参阅http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting以获得帮助。
[错误]无法解析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:有关详细信息,请参阅日志-> [帮助1]
[错误]
[错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。
[错误]使用-X开关重新运行Maven以启用完整的调试日志记录。
[错误]
[ERROR]有关错误和可能的解决方案的详细信息,请阅读以下文章:
[错误] [帮助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的屏幕截图。 我没有任何项目,只有这个工作区。
这是Eclipse IDE底部的标题为“标记”的窗格:
该项目与其他项目不同。 这是一个eclipse插件项目。 首先,克隆该项目后,转到指向该插件项目目录的命令提示符,然后运行以下命令。
mvn clean package
。
构建成功后,将其作为插件项目导入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链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.