On Tue, Dec 6, 2011 at 3:52 PM, Dileepa Jayakody <dile...@wso2.com> wrote:

> Hi,
>
> As a workaround for this you can copy the carbon-platform pom from
> carbon/components in to your m2 repo.
>
> Go to carbon/components and copy the pom to m2 repo in the following
> manner.
>
>  cp pom.xml
> ~/.m2/repository/org/wso2/carbon/carbon-platform/3.2.0-SNAPSHOT/carbon-platform-3.2.0-SNAPSHOT.pom
>
> Hope this helps.
>
>
Yes, this is the method I used. But, first I had to manually create the
directory structure by `mkdir
-p ~/.m2/repository/org/wso2/carbon/carbon-platform/3.2.0-SNAPSHOT/`. Then,
copied the pom using the above command you just said. The workaround in the
previous mail was somewhat easier because even the editing of the pom at m2
repo is optional. Lot of guys are having this issue.

Thanks,
--Kasun


> Regards,
> Dileepa
>
> On Tue, Dec 6, 2011 at 2:49 PM, Kasun Gajasinghe <kas...@wso2.com> wrote:
>
>> Hi,
>>
>> I faced the following issue when building carbon/service-stubs/ with
>> Maven 3.0.3, and a fresh repo. The log is given below. This error is not
>> produced in Maven 2.
>>
>> As I found out, the issue was that Maven3 doesn't identify the carbon
>> root pom, ie. org.wso2.carbon:carbon-platform. A workaround for this
>> problem is to build the carbon root pom first with all the <module>
>> declarations in its pom.xml commented out. And then, remove the added
>> comments in the copied carbon-platform pom in the M2 repo. But I think this
>> needs to be fixed to minimize this inconvenience, and isn't
>> straight-forward for a new builder.
>>
>> Thanks,
>> --Kasun
>>
>> [INFO]
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building WSO2 Carbon - Service Stubs - Aggregator Module
>> 3.2.0-SNAPSHOT
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/carbon-platform/3.2.0-SNAPSHOT/maven-metadata.xml
>> Downloading:
>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/carbon-platform/3.2.0-SNAPSHOT/carbon-platform-3.2.0-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... FAILURE
>> [1.273s]
>> [INFO] WSO2 Carbon - Stratos Common Stubs ................ SKIPPED
>> [INFO] WSO2 Carbon - Tenant Registration GApp Stub ....... SKIPPED
>> [INFO] WSO2 Carbon - Data Admin Console Stub ............. SKIPPED
>> ---
>> ---
>> [INFO] WSO2 Carbon - Qpid Stub ........................... SKIPPED
>> [INFO] WSO2 Carbon - Tenant activity Stub ................ SKIPPED
>> [INFO] WSO2 Carbon - Load Balance Agent Stub ............. SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 2.870s
>> [INFO] Finished at: Tue Dec 06 14:23:26 IST 2011
>> [INFO] Final Memory: 19M/618M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal on project service-stubs: Could not
>> resolve dependencies for project
>> org.wso2.carbon:service-stubs:pom:3.2.0-SNAPSHOT: Failed to collect
>> dependencies for [wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v2 (compile),
>> org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v1 (compile),
>> org.apache.neethi.wso2:neethi:jar:2.0.4.wso2v3 (compile),
>> org.apache.ws.commons.schema.wso2:XmlSchema:jar:1.4.7.wso2v1 (compile),
>> commons-logging:commons-logging:jar:1.1.1 (compile),
>> org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v1 (compile)]: Failed
>> to read artifact descriptor for
>> org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v1: *Could not find artifact
>> org.wso2.carbon:carbon-platform:pom:3.2.0-SNAPSHOT *in wso2-nexus (
>> http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [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
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to