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 : [email protected]
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural

\f0\fs24 \cf0 <?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>\
        <artifactId>student-manager-components</artifactId>\
        <groupId>org.wso2.carbon</groupId>\
        <version>4.2.0</version>\
    </parent>\
    <modelVersion>4.0.0</modelVersion>\
\
    <artifactId>org.wso2.carbon.student.mgt.stub</artifactId>\
\
    <packaging>bundle</packaging>\
    <name>WSO2 Carbon - Student Manager Stub</name>\
\
    <dependencies>\
        <dependency>\
            <groupId>org.apache.axis2.wso2</groupId>\
            <artifactId>axis2</artifactId>\
            <version>1.6.1.wso2v10</version>\
        </dependency>\
        <dependency>\
            <groupId>org.apache.ws.commons.axiom.wso2</groupId>\
            <artifactId>axiom</artifactId>\
            <version>1.2.11.wso2v4</version>\
        </dependency>\
        <dependency>\
            <groupId>wsdl4j.wso2</groupId>\
            <artifactId>wsdl4j</artifactId>\
            <version>1.6.2.wso2v4</version>\
        </dependency>\
    </dependencies>\
\
    <build>\
        <plugins>\
            <plugin>\
                <groupId>org.apache.maven.plugins</groupId>\
                <artifactId>maven-antrun-plugin</artifactId>\
                <version>1.1</version>\
                <executions>\
                    <execution>\
                        <id>source-code-generation</id>\
                        <phase>process-resources</phase>\
                        <goals>\
                            <goal>run</goal>\
                        </goals>\
                        <configuration>\
                            <tasks>\
                                <path id="wsdl2java.classpath">\
                                    <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" />\
                                </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>\
                <groupId>org.codehaus.mojo</groupId>\
                <artifactId>build-helper-maven-plugin</artifactId>\
                <executions>\
                    <execution>\
                        <id>add-source</id>\
                        <phase>generate-sources</phase>\
                        <goals>\
                            <goal>add-source</goal>\
                        </goals>\
                        <configuration>\
                            <sources>\
                                <source>target/generated-code/src</source>\
                            </sources>\
                        </configuration>\
                    </execution>\
                </executions>\
            </plugin>\
\
            <plugin>\
                <groupId>org.apache.felix</groupId>\
                <artifactId>maven-bundle-plugin</artifactId>\
                <extensions>true</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>\
                    </instructions>\
                </configuration>\
            </plugin>\
        </plugins>\
    </build>\
</project>}
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to