CoreException:无法计算构建计划; Eclipse 4.5.1上的Maven

时间:2017-05-18 07:13:34

标签: java eclipse maven

我正在努力让Maven在我的Eclipse工作中工作,但我遇到了几个问题,我不知道如何处理它们。

1)在Eclipse Marketplace中,我安装了与Maven相关的以下内容: -Java 8支持Eclipse Kepler SR2的m2e - Eclipse的Maven集成(Luna和更新版)

2)。当我试图将我的java项目转换为Maven时,我遇到了以下错误:

- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.3 or 
 one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-
 compiler-plugin:jar:3.3: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-
 compiler-plugin:pom:3.3 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
 3.3:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.3 or 
 one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-
 compiler-plugin:jar:3.3: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-
 plugin:pom:3.3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 
 reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer 
 artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.3 from/to central (https://repo.maven.apache.org/
 maven2): repo.maven.apache.org
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
 3.3:compile (execution: default-compile, phase: compile)

3)之后,在这里和那里有关于类似问题的一些回复之后,我已经将我的网络选项更改为“Native”,但它没有帮助。

4)我已经尝试在Eclipse文件夹中找到Maven的“settings.xml”,但没有。

5)我的pom.xml文件:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>Kobiety_do_kodu</groupId>
  <artifactId>Kobiety_do_kodu</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>Kobiety_do_kodu</name>
  <description>Introductory project from web</description>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

所以看起来它虽然标记为安装在Eclipse Marketplace中,但它下面没有任何东西?

你能帮助我让它运行吗?

0 个答案:

没有答案