Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component
Hi Vimalathan, Can you try adding the wso2 repo to your pom.xml file. Regards, Aruna On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi, I got a maven build failure when trying to create a service stub after successfully creating server component and generating .wsdl file. I was following a tutorial [1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Please find the attached org.wso2.carbon.student.mgt.stub → pom.xml file is used. I am getting the following error when building org.wso2.carbon.student.mgt.stub module using maven. *Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:* *The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: * *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in http://repo.maven.apache.org/maven2 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* It seems like problem with maven dependency versions. Please help me to get this resolved. Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component
HI Vimalanathan, Add following repos to your pom file. This should solve the issue. repositories repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.releases/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/releases/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repositories Thanks, Harsha On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi Vimalathan, Can you try adding the wso2 repo to your pom.xml file. Regards, Aruna On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi, I got a maven build failure when trying to create a service stub after successfully creating server component and generating .wsdl file. I was following a tutorial [1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Please find the attached org.wso2.carbon.student.mgt.stub → pom.xml file is used. I am getting the following error when building org.wso2.carbon.student.mgt.stub module using maven. *Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:* *The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: * *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in http://repo.maven.apache.org/maven2 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* It seems like problem with maven dependency versions. Please help me to get this resolved. Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component
Hi Vimalathan, The following lines doesn't correlate with your m2 repository. Please verify the paths you have given are correct and the corresponding jars exists. pathelement location=/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/\ pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar /\ pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar /\ Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi Vimalathan, Can you try adding the wso2 repo to your pom.xml file. Regards, Aruna On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi, I got a maven build failure when trying to create a service stub after successfully creating server component and generating .wsdl file. I was following a tutorial [1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Please find the attached org.wso2.carbon.student.mgt.stub → pom.xml file is used. I am getting the following error when building org.wso2.carbon.student.mgt.stub module using maven. *Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:* *The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: * *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in http://repo.maven.apache.org/maven2 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* It seems like problem with maven dependency versions. Please help me to get this resolved. Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component
Hi Vimalathan, Add the following dependency and check whether its working. dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2-client/artifactId version1.6.1.wso2v10/version /dependency Working sample pom file attached. Thanks On Wed, Sep 17, 2014 at 12:29 PM, Amal Gunatilake am...@wso2.com wrote: Hi Vimalathan, The following lines doesn't correlate with your m2 repository. Please verify the paths you have given are correct and the corresponding jars exists. pathelement location=/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/\ pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar /\ pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar /\ Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi Vimalathan, Can you try adding the wso2 repo to your pom.xml file. Regards, Aruna On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi, I got a maven build failure when trying to create a service stub after successfully creating server component and generating .wsdl file. I was following a tutorial [1]. [1] http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Please find the attached org.wso2.carbon.student.mgt.stub → pom.xml file is used. I am getting the following error when building org.wso2.carbon.student.mgt.stub module using maven. *Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:* *The following artifacts could not be resolved: org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10, org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4, wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: * *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in http://repo.maven.apache.org/maven2 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* It seems like problem with maven dependency versions. Please help me to get this resolved. Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prasanna Dangalla Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware cell: +94 777 55 80 30 | +94 718 11 27 51 twitter: @prasa77 ?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/xsd/maven-4.0.0.xsd; parent artifactIdstudent-manager-components/artifactId groupIdorg.wso2.carbon/groupId version4.2.0/version /parent modelVersion4.0.0/modelVersion artifactIdorg.wso2.carbon.student.mgt.stub/artifactId packagingbundle/packaging nameWSO2 Carbon - Student Manager Stub/name dependencies dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2/artifactId version1.6.1.wso2v10/version /dependency dependency groupIdorg.apache.ws.commons.axiom.wso2/groupId artifactIdaxiom/artifactId version1.2.11.wso2v4/version /dependency dependency groupIdwsdl4j.wso2/groupId artifactIdwsdl4j/artifactId version1.6.2.wso2v4/version /dependency dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2-client/artifactId version1.6.1.wso2v10/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution
Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component
Hi All, Thank you very much for your replies. I added the maven dependency and repository information and it worked fine. Here is the pom.xml I updated to get it worked. ?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/xsd/maven-4.0.0.xsd; parent artifactIdstudent-manager-components/artifactId groupIdorg.wso2.carbon/groupId version4.2.0/version /parent modelVersion4.0.0/modelVersion artifactIdorg.wso2.carbon.student.mgt.stub/artifactId packagingbundle/packaging nameWSO2 Carbon - Student Manager Stub/name dependencies dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2/artifactId version1.6.1.wso2v10/version /dependency dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2-client/artifactId version1.6.1.wso2v10/version /dependency dependency groupIdorg.apache.ws.commons.axiom.wso2/groupId artifactIdaxiom/artifactId version1.2.11.wso2v4/version /dependency dependency groupIdwsdl4j.wso2/groupId artifactIdwsdl4j/artifactId version1.6.2.wso2v4/version /dependency /dependencies repositories repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository /repositories build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idsource-code-generation/id phaseprocess-resources/phase goals goalrun/goal /goals configuration tasks path id=wsdl2java.classpath pathelement location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/ pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar / pathelement location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar / /path java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpath refid=wsdl2java.classpath / arg line=-uri src/main/resources/StudentManager.wsdl -u -uw -o target/generated-code -p org.wso2.carbon.student.mgt.stub/ /java /tasks /configuration /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId executions execution idadd-source/id phasegenerate-sources/phase goals goaladd-source/goal /goals configuration sources sourcetarget/generated-code/src/source /sources /configuration /execution /executions /plugin plugin groupIdorg.apache.felix/groupId artifactIdmaven-bundle-plugin/artifactId extensionstrue/extensions configuration instructions Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName Bundle-Name${project.artifactId}/Bundle-Name Private-Package /Private-Package Export-Package org.wso2.carbon.student.mgt.* /Export-Package Import-Package !org.wso2.carbon.student.mgt.* /Import-Package DynamicImport-Package*/DynamicImport-Package