Java CoreException:无法计算生成计划;Eclipse4.5.1上的Maven
我试图让Maven在Eclipse中工作,但我遇到了几个问题,我不知道如何处理它们 1) 在Eclipse Marketplace中,我安装了以下与Maven相关的东西: -Java 8支持Eclipse开普勒SR2的m2e -针对Eclipse的Maven集成(Luna和更新版本) 2) 。当我尝试将java项目转换为Maven时,我遇到了以下错误:Java CoreException:无法计算生成计划;Eclipse4.5.1上的Maven,java,eclipse,maven,Java,Eclipse,Maven,我试图让Maven在Eclipse中工作,但我遇到了几个问题,我不知道如何处理它们 1) 在Eclipse Marketplace中,我安装了以下与Maven相关的东西: -Java 8支持Eclipse开普勒SR2的m2e -针对Eclipse的Maven集成(Luna和更新版本) 2) 。当我尝试将java项目转换为Maven时,我遇到了以下错误: - CoreException: Could not calculate build plan: Plugin org.apache.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) 在那之后,在这里和那里对类似的问题进行了一些回应之后,我将我的网络选项更改为“本机”,但没有任何帮助
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>
4.0.0
科比蒂·杜·科杜
科比蒂·杜·科杜
0.0.1-快照
科比蒂·杜·科杜
来自web的介绍性项目
src
maven编译器插件
3.3
1.8
1.8
所以看起来,虽然它被标记为安装在Eclipse Marketplace中,但它下面什么都没有
您能帮我让它运行吗?来自错误消息:“无法传输org.apache.maven.plugins:maven编译器-plugin:pom:3.3 From”。您的网络中有代理吗?你配置好了吗?settings.xml文件位于maven的config文件夹和~/.m2文件夹中。是的,我在一个位于代理后面的办公网络中工作,但我没有所有管理权限,因此我不知道是否可以以任何方式配置它。在Eclipse marketplace中安装maven时默认安装在哪里?然后我建议您获取网络的代理信息,然后将它们添加到您的设置中。xml,不需要管理员权限。否则,在settings.xml中,我会尝试指向http中央repo,并从错误消息中尝试:“未能传输org.apache.maven.plugins:maven编译器-plugin:pom:3.3 from”。您的网络中有代理吗?你配置好了吗?settings.xml文件位于maven的config文件夹和~/.m2文件夹中。是的,我在一个位于代理后面的办公网络中工作,但我没有所有管理权限,因此我不知道是否可以以任何方式配置它。在Eclipse marketplace中安装maven时默认安装在哪里?然后我建议您获取网络的代理信息,然后将它们添加到您的设置中。xml,不需要管理员权限。否则,在settings.xml中,我会尝试指向http中央repo并尝试一下