采用Eclipse中间Maven构建Web项目错误(一)
2015-09-26 13:03
585 查看
采用Eclipse中间Maven构建Web工程
1、在进行上述操作时。pom.xml一直报错
2、错误描写叙述
1、在进行上述操作时。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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.you.maven</groupId> <artifactId>maven-you-web</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>maven-you-web Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>br.gov.frameworkdemoiselle.archetypes</groupId> <artifactId>demoiselle-jsf-jpa</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-archiver</artifactId> <version>2.4.4</version> </dependency> </dependencies> <build> <finalName>maven-you-web</finalName> </build> </project>
2、错误描写叙述
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): connection timed out to http://220.231.231.15/download/13282160/36221368/3/jar/84/9/1379427315796_265/plexus-archiver-1.2.jar[/code]
3、解决的方法
(1)先去掉Mavenproject的maven特性,选中project 鼠标右键-->Maven-->Disable Maven Nature
(2)为project添加Maven特性,选中project 鼠标右键-->Configure-->Convert to Maven Project
相关文章推荐
- Introduction to Java Programming编程题11.1<The triangle class>
- Java反射通过class获取父类泛型类型
- struts2中一个表单中提交多个请求(动态调用方法)
- 经典排序算法(Java版)
- Java虚拟机6:内存溢出和内存泄露、并行和并发、Minor GC和Full GC、Client模式和Server模式的区别
- 【Java】抽象类
- Java例题
- java中使用mysql
- Spring(五):事务的传播行为和隔离级别
- 在java中使用mysql
- 通过spring 配置 @Scheduled定时任务
- java 图片缩放、裁剪。
- test7.24
- Java-数组转List-判断一个数是否存在数组/List中
- Java IO 之 InputStream源码
- Eclipse使用
- java通过JDBC链接SQLServer2012
- JAVA-文件合并
- JAVA-分割大文件(按行分割)
- SSH——Struts2引入配置