eclipse 创建maven项目时pom.xml 报错如下

sky2434550330 2014-04-03 12:13:44
Failure to transfer org.codehaus.plexus:plexus-archiver:jar:1.2 from http://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.codehaus.plexus:plexus-archiver:jar:1.2 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
...全文
262 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
_serendipity_ 2014-04-07
  • 打赏
  • 举报
回复
应该跟你贴的代码没关系。可能跟你没有贴出来的<dependency>有关系。那里面写的以来的包在Maven仓库中找不到。检查一下<groupId>、<artifactId>和<version>是否写错了?最好是去Maven仓库里搜一下那个plexus,看看正确的依赖怎么写。
sky2434550330 2014-04-03
  • 打赏
  • 举报
回复
引用 1 楼 u012821210 的回复:
建议使用 1.使用myeclipse 6.5 及以上版本 自带maven2 2.手动创建 pom.xml 命令在doc里面敲 pom.xml文件配置内容如下:
<project> 
[...] 
<build> 
    <plugins> 
      <plugin> 
        <groupId>org.apache.maven.plugins</groupId> 
        <artifactId>maven-surefire-plugin</artifactId> 
        <configuration> 
          <testFailureIgnore>true</testFailureIgnore> 
        </configuration> 
      </plugin> 
    </plugins> 
</build> 
[...] 
</project>
这个方法我试过,没有用的
SweetTimeRose 2014-04-03
  • 打赏
  • 举报
回复

建议使用
1.使用myeclipse 6.5 及以上版本 自带maven2
2.手动创建 pom.xml 命令在doc里面敲
pom.xml文件配置内容如下:
<project> 
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧