java - Maven project "maven install" error -
[error] failed execute goal on project xserver-api: not resolve dependencies project xgroup:xserver-api:war:1.0.1-snapshot: failed collect dependencies @ xgroup:xserver-lib:jar:1.0.1-snapshot: failed read artifact descriptor xgroup:xserver-lib:jar:1.0.1-snapshot: not find artifact xgroup:xserver:pom:1.0.1-snapshot -> [help 1]
who can me solve problem? thank much!
blow pom file : don't know has problem:
<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> <name>xserver api</name> <packaging>war</packaging> <artifactid>xserver-api</artifactid> <parent> <groupid>xgroup</groupid> <artifactid>xserver</artifactid> <version>1.0.1-snapshot</version> </parent> <properties> <javax.servlet-api>3.0.1</javax.servlet-api> <javax.servlet-jstl>1.2</javax.servlet-jstl> <maven-war-plugin>2.4</maven-war-plugin> </properties>
here pom of xgroup:xserver-lib.jar:1.0.1-snapshot
<modelversion>4.0.0</modelversion> <name>xserver lib</name> <packaging>jar</packaging> <artifactid>xserver-lib</artifactid> <!-- parent --> <parent> <groupid>xgroup</groupid> <artifactid>xserver</artifactid> <version>1.0.1-snapshot</version> </parent> <!-- properties --> <properties> <!-- dependencies --> <javax.servlet-api>3.0.1</javax.servlet-api> <org.springframework>3.2.13.release</org.springframework> <org.codehaus.jackson>1.9.7</org.codehaus.jackson> <org.mybatis-mybatis>3.1.1</org.mybatis-mybatis> <org.mybatis-mybatis-spring>1.1.1</org.mybatis-mybatis-spring> <mysql>5.1.20</mysql> <c3p0>0.9.1.2</c3p0> <commons-httpclient>3.1</commons-httpclient> <org.slf4j>1.6.6</org.slf4j> <log4j>1.2.17</log4j> <cglib>3.1</cglib> <commons-net>3.3</commons-net> <javax.jms>2.0</javax.jms> <com.rabbitmq>3.4.4</com.rabbitmq> <activemq>5.9.1</activemq> <jedis>2.6.0</jedis> <xmemcached>2.0.0</xmemcached> </properties> <!-- dependencies --> <dependencies> <dependency> <groupid>javax.servlet</groupid> <artifactid>javax.servlet-api</artifactid> <version>${javax.servlet-api}</version> <scope>provided</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-oxm</artifactid> <version>${org.springframework}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>${org.springframework}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-webmvc</artifactid> <version>${org.springframework}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.codehaus.jackson</groupid> <artifactid>jackson-mapper-asl</artifactid> <version>${org.codehaus.jackson}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.mybatis</groupid> <artifactid>mybatis</artifactid> <version>${org.mybatis-mybatis}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.mybatis</groupid> <artifactid>mybatis-spring</artifactid> <version>${org.mybatis-mybatis-spring}</version> <scope>compile</scope> </dependency> <dependency> <groupid>mysql</groupid> <artifactid>mysql-connector-java</artifactid> <version>${mysql}</version> <scope>compile</scope> </dependency> <dependency> <groupid>c3p0</groupid> <artifactid>c3p0</artifactid> <version>${c3p0}</version> <scope>compile</scope> </dependency> <dependency> <groupid>commons-httpclient</groupid> <artifactid>commons-httpclient</artifactid> <version>${commons-httpclient}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> <version>${org.slf4j}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-log4j12</artifactid> <version>${org.slf4j}</version> <scope>compile</scope> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>${log4j} </version> <scope>compile</scope> </dependency> <dependency> <groupid>cglib</groupid> <artifactid>cglib</artifactid> <version>${cglib}</version> </dependency> <dependency> <groupid>commons-net</groupid> <artifactid>commons-net</artifactid> <version>${commons-net}</version> <scope>compile</scope> </dependency> <dependency> <groupid>javax.jms</groupid> <artifactid>javax.jms-api</artifactid> <version>${javax.jms}</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.apache.activemq</groupid> <artifactid>activemq-all</artifactid> <version>${activemq}</version> </dependency> <dependency> <groupid>com.rabbitmq</groupid> <artifactid>amqp-client</artifactid> <version>${com.rabbitmq}</version> </dependency> <dependency> <groupid>redis.clients</groupid> <artifactid>jedis</artifactid> <version>${jedis}</version> <scope>compile</scope> </dependency> <dependency> <groupid>com.googlecode.xmemcached</groupid> <artifactid>xmemcached</artifactid> <version>${xmemcached}</version> <scope>compile</scope> </dependency> </dependencies>
your maven project structure seems broken. if first clean install
parent project (which xgroup:xserver:pom:1.0.1-snapshot
) , clean install
child project , problem fixed. but, better if fix root problem. if post project structure, parent.pom etc. can give more detailed answer.
Comments
Post a Comment