我在笔记本电脑上设置了Maven 2。我仍然使用Maven 2的原因是Maven不知何故不能工作,因为我公司的代理服务器。
工作环境: Eclipse Helio Service Release 2 Maven 2.2.1 Windows 7
错误消息:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'StrutsExample'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
我认为它找不到2.5jar,所以我下载了它,并手动将其与相应的pom文件一起添加到本地存储库,但它仍然无法工作……
有什么建议吗?先谢谢你...
发布于 2014-02-20 23:46:44
我的工作解决方案:
对于所有subdirectories
m2e-lastUpdated.properties
的所有文件,请转到所有eclipse、刷新和更新Maven项目并更新我的准确错误是:
无法计算生成计划: Plugin org.apache.maven.plugins:maven-jar-plugin:2.4或其依赖项之一无法解析:无法读取org.apache.maven.plugins:maven-jar-plugin:jar:2.4的项目描述符
原因:从http://repo.maven.apache.org/maven2传输org.apache.maven.plugins:maven-jar-plugin:pom:2.4失败已缓存在本地存储库中,在超过中心的更新间隔或强制更新之前,将不会重试解析。
发布于 2018-04-24 00:14:32
解决构建计划的步骤:
>g29
发布于 2015-05-02 00:59:01
我也遇到了这个问题,我的输出是无法计算构建计划: Plugin org.apache.maven.plugins:maven-war- Plugin :2.2或其依赖项之一无法解析:无法读取org.apache.maven.plugins:maven-war-plugin:jar:2.2插件org.apache.maven.plugins:maven-war-plugin:2.2或其依赖项之一的工件描述符:无法读取org.apache.maven.plugins:maven-war-plugin:jar:2.2的工件描述符
我尝试了几种解决方案
但这些都不起作用
最后,我添加了如下内容:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<excludes>
<exclude>**/*.jpg</exclude>
</excludes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
这个解决方案起作用了,所以你可以自己在pom.xml中添加插件
https://stackoverflow.com/questions/18851910
复制相似问题