[英]Maven error executing pom.xml
无法在项目HMOPV-tools上执行目标:无法解析项目HMOPV:HMOPV-tools:jar:1.0.0的依赖项:无法为[commons-lang:commons-lang:jar:2.1(compile))收集依赖项-codec:commons-codec:jar:1.3(编译),commons-digester:commons-digester:jar:1.6(编译),commons-collections:commons-collections:jar:3.2(编译),javax.servlet:servlet- api:jar:2.3(编译),javax.servlet.jsp:jsp-api:jar:2.1(编译),net.sf.jasperreports:jasperreports:jar:3.7.1(编译),javax.faces:jsf-api :jar:1.2_07(编译),javax.faces:jsf-impl:jar:1.2_07(编译),org.richfaces.framework:richfaces-api:jar:3.3.4.Final(编译),org.richfaces。 framework:richfaces-impl:jar:3.3.4.Final(编译),org.richfaces.ui:richfaces-ui:jar:3.3.4.Final(编译),dom4j:dom4j:jar:1.6(编译),jdom :jdom:jar:1.1(编译),log4j:log4j:jar:1.2.15(编译),commons-beanutils:commons-beanutils:jar:1.8.2(编译)]:无法读取commons-lang的工件描述符:commons-lang:jar:2 .1:无法从/向中央( http://repo.maven.apache.org/maven2 )传输工件commons-lang:commons-lang:pom:2.1:连接超时到http://repo.maven。 apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom- > [帮助1]
下面是我的pom.xml,
<?xml version="1.0" encoding="UTF-8"?>
<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>HMOPV</groupId>
<artifactId>HMOPV-tools</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>HMOPV-tools</name>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
<scope></scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.1</version>
<scope></scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.3</version>
<scope></scope>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.6</version>
<scope></scope>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
<scope></scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
<scope></scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope></scope>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>3.7.1</version>
<scope></scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>1.2_07</version>
<scope></scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>1.2_07</version>
<scope></scope>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
<version>3.3.4.Final</version>
<scope></scope>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
<version>3.3.4.Final</version>
<scope></scope>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
<version>3.3.4.Final</version>
<scope></scope>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6</version>
<scope></scope>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.1</version>
<scope></scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope></scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<scope></scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.2</version>
<scope></scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<sourceDirectory>src/main/java</sourceDirectory>
<outputDirectory>classes</outputDirectory>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
</build>
</project>
你能帮忙解决什么问题吗?
尝试使用手动安装,
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.