Hi,
I'm following the tutorial [1] to implement a wso2 carbon component. As per
the tutorial, I have copied the generated wsdl file into required location.
But when generating the service stub, following exception occurs.

*org.apache.maven.lifecycle.LifecycleExecutionException: 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: Could not find artifact
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central
(http://repo.maven.apache.org/maven2 <http://repo.maven.apache.org/maven2>)*

The "wsdl2java.classpath" is configured in the maven-antrun-plugin with the
3 dependencies as path elements and those paths are set according to the
local maven repository as follows:

<*path id="wsdl2java.classpath"*>
  <*pathelement*
*location="/home/indunil/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"*/>
  <*pathelement*
*location="/home/indunil/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"*/>
  <*pathelement*
*location="/home/indunil/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"*/>
</*path*>

Is there any changes to be done in the location of maven repository or more
dependencies to add in pom file? Appreciate any help to solve this.

[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thank You

Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc

Email    [email protected]
Mobile  +94713695179
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to