Hi Danushka, I also tried with your solution. But still it give the(below) same error. Please check attached pom file.
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:21.250s [INFO] Finished at: Wed Aug 27 18:23:01 IST 2014 [INFO] Final Memory: 8M/982M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project WSO2-Axis2-Client: Could not resolve dependencies for project WSO2:WSO2-Axis2-Client:jar:0.0.1-SNAPSHOT: Failure to find org.apache.axis2:axis2:jar:1.6.1-wso2v10 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Regards, Akila From: Danushka Fernando [mailto:[email protected]] Sent: Wednesday, August 27, 2014 2:20 PM To: Rajith Vitharana Cc: Akila Nimantha [IT/EKO/LOITS]; [email protected] Subject: Re: [Dev] Failed to execute goal on project WSO2-Axis2-Client Hi Akila 1. You are using a wrong repository I guess use following instead <repositories> <repository> <id>wso2-nexus</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </releases> </repository> </repositories> 2. If you are using wso2 products its better to use wso2v10 rather than wso2v9 of axis2 since it is the version shipped in wso2 products. 3. Can you post the full build error here. Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 27, 2014 at 2:05 PM, Rajith Vitharana <[email protected]<mailto:[email protected]>> wrote: Nice being able to help :) On Wed, Aug 27, 2014 at 1:18 PM, Akila Nimantha [IT/EKO/LOITS] <[email protected]<mailto:[email protected]>> wrote: Hi Rajith, Now it generated target files without errors. Thanks for your instant reply. Regards, Akila From: Rajith Vitharana [mailto:[email protected]<mailto:[email protected]>] Sent: Wednesday, August 27, 2014 12:49 PM To: Akila Nimantha [IT/EKO/LOITS] Cc: [email protected]<mailto:[email protected]> Subject: Re: [Dev] Failed to execute goal on project WSO2-Axis2-Client Hi Akila, It seems axis2 client version "1.6.1-wso2v10" is not released to nexus yet. So try building the sample with axis2 version "1.6.1-wso2v9" as shown below. <axis2_version>1.6.1-wso2v9</axis2_version> Thanks, On Wed, Aug 27, 2014 at 12:22 PM, Akila Nimantha [IT/EKO/LOITS] <[email protected]<mailto:[email protected]>> wrote: Hi all, We tried to build application server Helloservice jar file using maven. When I trying to build the project using “mvn clean install” I got following error.also I have attached generated POM file and wsdl file as well. “ Failed to execute goal on project WSO2-Axis2-Client: Could not resolve dependencies for project WSO2:WSO2-Axis2-Client:jar:0.0.1-SNAPSHOT: Failure to find org.apache.axis2:axis2:jar:1.6.1-wso2v10 in http://dist.wso2.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-Nexus has elapsed or updates are forced -> [Help 1] “ Also I tried replacing repository element with as below, <repository> <id>wso2-nexus</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url> </repository> But it still give the same error.. Regards, Akila This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. _______________________________________________ Dev mailing list [email protected]<mailto:[email protected]> http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com<http://wso2.com/> Mobile : +94715883223<tel:%2B94715883223> Blog : http://lankavitharana.blogspot.com/ This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com<http://wso2.com/> Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ _______________________________________________ Dev mailing list [email protected]<mailto:[email protected]> http://wso2.org/cgi-bin/mailman/listinfo/dev This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you.
<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>WSO2</groupId> <artifactId>WSO2-Axis2-Client</artifactId> <version>0.0.1-SNAPSHOT</version> <name>Axis2-Client</name> <repositories> <repository> <id>wso2-nexus</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </releases> </repository> </repositories> <properties> <axis2_version>1.6.1-wso2v10</axis2_version> </properties> <pluginRepositories> <pluginRepository> <id>wso2-Nexus</id> <name>WSO2 Repository</name> <url>http://dist.wso2.org/maven2/</url> </pluginRepository> </pluginRepositories> <build> <plugins> <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <version>${axis2_version}</version> <executions> <execution> <goals> <goal>wsdl2code</goal> </goals> </execution> </executions> <configuration> <outputDirectory>${basedir}/generated-sources</outputDirectory> <databindingName>adb</databindingName><language>java</language><wsdlFile>capexRead.wsdl</wsdlFile> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.7</version> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${basedir}/generated-sources/src</source> <source>${basedir}/generated-sources/test</source> </sources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.9</version> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2</artifactId> <version>${axis2_version}</version> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-adb</artifactId> <version>${axis2_version}</version> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-transport-http</artifactId> <version>${axis2_version}</version> </dependency> <dependency> <groupId>org.apache.axis2</groupId> <artifactId>axis2-transport-local</artifactId> <version>${axis2_version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> <scope>compile</scope> </dependency> </dependencies> </project>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
