当我在项目中使用eclipse的maven集成插件时,我在eclipse日志中收到此错误:
Build errors for transport-data; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (default-resources) on project transport-data: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4, org.apache.maven.shared:maven-filtering:jar:1.0-beta-4, org.codehaus.plexus:plexus-interpolation:jar:1.13: Failure to transfer org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 from http://repo1.maven.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.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 from/to central (http://repo1.maven.org/maven2): Failed to transfer http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar. Error code 416, Requested Range Not Satisfiable
从浏览器我可以访问jar但是插件如何获得416状态响应?
我在Maven 2.2.1上使用STS 2.7.2.RELEASE(Eclipse 3.6)和Maven Integration插件 我的操作系统是Ubuntu 10.10。如果有人能帮我解释这个谜,我会非常感激。
谢谢!
答案 0 :(得分:6)
我知道这是一个非常古老的请求,但我也遇到过它。对我有用的是删除.m2存储库中相关的下载组件。我认为可能有一些部分加载的位,因为我已经使用Eclipse和命令行与maven。
希望这会有所帮助......
答案 1 :(得分:0)
HTTP 416表示客户端仅请求文件的一部分,但服务器可能不支持此类请求。虽然如果maven会破坏他们的回购网络服务器,我会感到惊讶。 另一种可能性是你是一个不支持范围请求的代理。