@Chamila There is no specific document for it, but it's come from maven. Maven will look for resolve dependencies from repos. First there are mvn central repos which you don't want to specify in a pom file. By default maven try to resolve dependency from them first. Then maven will look at the specified repos in pom file to resolve them. Now you know how it works :). There are several repos belongs to wso2 which host snapshots, relased jars
On Tue, Jul 22, 2014 at 11:04 PM, Dinesh J Weerakkody <[email protected]> wrote: > Hi Chamila, > > You should be able to resolve this issue by adding the WSO2 repository to > your pom file. Just copy and paste following repository declaration any > where within <project> tag. > > <repositories> > <repository> > <id>wso2-maven2-repository</id> > <name>WSO2 Maven2 Repository</name> > <url>http://dist.wso2.org/maven2</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > <releases> > <enabled>true</enabled> > <updatePolicy>never</updatePolicy> > <checksumPolicy>fail</checksumPolicy> > </releases> > </repository> > </repositories> > > > > On Tue, Jul 22, 2014 at 9:10 PM, Chamila De Alwis <[email protected]> > wrote: > >> Thanks Harsha! >> >> That did it actually. Earlier the build failed because the dependencies >> were not resolved. >> >> I wasn't aware of the locations of these repositories. Is there any >> particular document mentioning these? >> >> >> On Tue, Jul 22, 2014 at 6:23 PM, Harsha Kumara <[email protected]> wrote: >> >>> Hi Chamila, >>> Did you build your project? Or is it failing because of cannot resolved >>> these jars? May be you haven's specify the wso2 repositories in your pom >>> file. Can you check it? >>> See repositories in [1] as an example. >>> >>> [1]- >>> https://github.com/wso2-dev/carbon-storage-management/blob/master/pom.xml >>> Thanks, >>> Harsha >>> >>> >>> On Tue, Jul 22, 2014 at 6:05 PM, Chamila De Alwis <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> I'm trying out this[1] tutorial to create a carbon component. However >>>> two dependencies can't be solved because they are not located. >>>> >>>> <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> >>>> >>>> Should I specify any mirror settings to resolve these jars? >>>> >>>> I've located the second jar, wsdl4j[2] but I can't locate the axiom >>>> jar[3]. Both of these can't be resolved. >>>> >>>> [1] - >>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ >>>> [2] - >>>> >>>> http://maven.wso2.org/nexus/content/groups/wso2-public/wsdl4j/wso2/wsdl4j/maven-metadata.xml >>>> [3] - http://findjar.com/index.x?query=axiom+limit%3Anone >>>> >>>> >>>> -- >>>> >>>> Regards, >>>> Chamila de Alwis >>>> Software Engineer | WSO2 | +94772207163 >>>> Blog: code.chamiladealwis.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Harsha Kumara >>> Software Engineer, WSO2 Inc. >>> Mobile: +94775505618 >>> Blog:harshcreationz.blogspot.com >>> >> >> >> >> -- >> >> Regards, >> Chamila de Alwis >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Thank you. > > *Dinesh J. Weerakkody* > Software Engineer > WSO2 Inc. > lean | enterprise | middleware > M : +94 727 361788 | E : [email protected] | W : www.wso2.com > -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
