Hi Samith Ad I previously mentioned I am using the default AF dev setup (jenkins configurations) so its already there. This is an issue with the wso2-genaral-project-plugin AFAIU. Because all other artifacts are there in the custom repo and when building the car its looking in the correct place but its installed in to wrong location.
Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Sun, Jul 19, 2015 at 7:38 PM, Samith Dassanayake <[email protected]> wrote: > Hi Danushka, > By setting "localRepository" value as I have mentioned above, jenkins > will set the "Dmaven.repo.local"(local repository location) option using > the above method. I think in your case, wso2 project plugin is using the > localRepository[1] defined in the the global > configuration($M2_HOME/conf/setting.xml) even it is passed as a maven > option "Dmaven.repo.local". > > [1] https://maven.apache.org/guides/mini/guide-configuring-maven.html > > Regards, > Samith > > On Sun, Jul 19, 2015 at 6:34 PM, Danushka Fernando <[email protected]> > wrote: > >> Hi Samith >> I am using AF dev setup. So its using the custom location as repo. >> Problem is wso2 project plugin installs the artifact to .m2 rather than to >> the custom repo. So when it's building the car its looking for the artifact >> in custom repo and its not there so build fails. So if I copy .m2 artifact >> and trigger Jenkins build its building without an issue. Problem is with >> the plugin. Setup is working correctly. >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> >> On Jul 19, 2015 5:57 PM, "Samith Dassanayake" <[email protected]> wrote: >> >>> Hi Danushka, >>> >>> You have to set the "class" attribute of the "localRepository" element >>> of the job config to >>> "org.wso2.carbon.appfactory.jenkins.extentions.AFLocalRepositoryLocator" to >>> use the tenant specific m2 Repo as in [1]. Then when a build is triggered, >>> "locate"[2][3] method of the AFLocalRepositoryLocator will be invoked and >>> it will choose the .m2 repo location accordingly >>> >>> [1] >>> https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.core/src/main/resources/jenkins-config.xml#L104 >>> [2] >>> https://github.com/wso2/product-af/blob/master/modules/webapps/appfactory-plugin/src/main/java/org/wso2/carbon/appfactory/jenkins/extentions/AFLocalRepositoryLocator.java#L49 >>> [3] >>> http://buddycode.blogspot.com/2015/06/jenkins-deployment-in-wso2-appfactory.html >>> >>> Regards, >>> Samith >>> >>> On Sat, Jul 18, 2015 at 6:30 PM, Danushka Fernando <[email protected]> >>> wrote: >>> >>>> Hi All >>>> >>>> Currently I am working on [1]. While working on it I faced $subject. >>>> >>>> In AF we are using jenkins as the default build server and for each >>>> tenant we point to a custom repository (maven repository) location so all >>>> tenant artifacts are installed their own repository. But when I build the >>>> Resources Project with these settings it install the artifacts to the basic >>>> .m2 folder of the afpuppet user (owner of the jenkins process). I guess >>>> this is a bug in some plugin we developed. Can some one shed some light on >>>> this since I am stuck on this. >>>> >>>> >>>> [1] [Architecture] [AF] Adding CAR application type to App Factory >>>> >>>> Thanks & Regards >>>> Danushka Fernando >>>> Senior Software Engineer >>>> WSO2 inc. http://wso2.com/ >>>> Mobile : +94716332729 >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Best Regards >>> >>> Samith Dassanayake >>> Software Engineer | Cloud TG >>> WSO2, Inc. | http://wso2.com >>> lean. enterprise. middleware >>> >>> Mobile : +947 76207351 >>> >> > > > -- > Best Regards > > Samith Dassanayake > Software Engineer | Cloud TG > WSO2, Inc. | http://wso2.com > lean. enterprise. middleware > > Mobile : +947 76207351 >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
