java - Maven error executing pom.xml -
failed execute goal on project hmopv-tools: not resolve dependencies project hmopv:hmopv-tools:jar:1.0.0: failed collect dependencies [commons-lang:commons-lang:jar:2.1 (compile), commons-codec:commons-codec:jar:1.3 (compile), commons-digester:commons-digester:jar:1.6 (compile), commons-collections:commons-collections:jar:3.2 (compile), javax.servlet:servlet-api:jar:2.3 (compile), javax.servlet.jsp:jsp-api:jar:2.1 (compile), net.sf.jasperreports:jasperreports:jar:3.7.1 (compile), javax.faces:jsf-api:jar:1.2_07 (compile), javax.faces:jsf-impl:jar:1.2_07 (compile), org.richfaces.framework:richfaces-api:jar:3.3.4.final (compile), org.richfaces.framework:richfaces-impl:jar:3.3.4.final (compile), org.richfaces.ui:richfaces-ui:jar:3.3.4.final (compile), dom4j:dom4j:jar:1.6 (compile), jdom:jdom:jar:1.1 (compile), log4j:log4j:jar:1.2.15 (compile), commons-beanutils:commons-beanutils:jar:1.8.2 (compile)]: failed read artifact descriptor commons-lang:commons-lang:jar:2.1: not transfer artifact commons-lang:commons-lang:pom:2.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out http://repo.maven.apache.org/maven2/commons-lang/commons-lang/2.1/commons-lang-2.1.pom -> [help 1]
below 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>
can please help whats wrong?
try using manual installation,
mvn install:install-file -dfile=<path-to-file> -dgroupid=<group-id> \ -dartifactid=<artifact-id> -dversion=<version> -dpackaging=<packaging>
java maven
No comments:
Post a Comment