简体   繁体   English

Maven错误“无法解析项目依赖项:”-“ org.eclipse.jst.web_sdk.feature.feature.group”

[英]Maven error “Cannot resolve project dependencies:” — “org.eclipse.jst.web_sdk.feature.feature.group”

I was following the instructions at Import into Eclipse and Set up Development Environment when I got to the step that says 当我说到步骤“ 导入到Eclipse和设置开发环境”中的说明时,

  1. Run the setup.sh script if you havn't created the target platform: sh setup.sh. 如果尚未创建目标平台,请运行setup.sh脚本:sh setup.sh。

It is to be run in terminal on macOS. 它要在macOS的终端中运行。

I received the following error messages: 我收到以下错误消息:

[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 [错误]正在安装的软件: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 [错误]缺少要求: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',但找不到

[ERROR] [错误]

[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help. [错误]请参阅http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting以获得帮助。

[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] [错误]无法解析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]

[ERROR] [错误]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。

[ERROR] Re-run Maven using the -X switch to enable full debug logging. [错误]使用-X开关重新运行Maven以启用完整的调试日志记录。

[ERROR] [错误]

[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR]有关错误和可能的解决方案的详细信息,请阅读以下文章:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException [错误] [帮助1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

It looks like I need to add "org.eclipse.jst.web_sdk.feature.feature.group" as a dependency, but I'm not able to find that module to download. 看来我需要添加“ org.eclipse.jst.web_sdk.feature.feature.group”作为依赖项,但是我找不到要下载的模块。

This is what is in the pom.xml file originally: 这是原始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>

This is the pom.xml file after I added content to it: 这是我向其中添加内容后的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>

This is a screenshot of the Project Explorer in Eclipse. 这是Eclipse中的Project Explorer的屏幕截图。 I don't have any projects, just this workspace. 我没有任何项目,只有这个工作区。

项目浏览器窗格

This is the pane titled "Markers" at the bottom of the Eclipse IDE: 这是Eclipse IDE底部的标题为“标记”的窗格:

标记窗格 What do I need to do to successfully run "sh setup.sh" as the step instructs? 要按照步骤指示成功运行“ sh setup.sh”,我需要做什么?

This project is different from other project. 该项目与其他项目不同。 it is an eclipse plugin project. 这是一个eclipse插件项目。 First of all, after cloning this project, go to command prompt pointing to the directory of this plugin project and run the following command. 首先,克隆该项目后,转到指向该插件项目目录的命令提示符,然后运行以下命令。

mvn clean package . mvn clean package

Once the build is successful, import as plugin project in eclipse. 构建成功后,将其作为插件项目导入eclipse中。 This is the normal way of importing eclipse plugin project. 这是导入eclipse插件项目的常规方法。 It is recommended to go through the ReadMe.md file in the github link. 建议浏览github链接中的ReadMe.md文件。 https://github.com/aws/aws-toolkit-eclipse https://github.com/aws/aws-toolkit-eclipse

I will suggest, first go through the following helpful links about tycho and how to configure and develop eclipse plugin. 我建议,首先浏览以下有关tycho以及如何配置和开发eclipse插件的有用链接。

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

You can also refer to the following stackoverflow link. 您也可以参考以下stackoverflow链接。

Dependencies from pom.xml not considered by Eclipse in Tycho Project 在Tycho Project中Eclipse不考虑来自pom.xml的依赖项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM