Hi Asntha, Please follow steps below to complete the project.
1. In your features [1] folder, you have to create etc folder and put feature.properties file in it. This is same as [2]. 2. You have to create server.feature in [1]. Refer [3] and do the same. Make necessary modifications to pom file. 3. Once you do above, you can commit and push so that your PR [4] will automatically get these changes appended. Next step is to add this feature to IS product so when the product is built, the jar file is automatically packed to the product. For that, follow the instructions below. 4. Clone product-is [5] and do a clean repo build skipping tests. (you can just backup .m2 directory in your home and create an empty folder with name .m2. Then you can run mvn clean install -Dmaven.test.skip=true" command in product-is. 5. Once the product is built, you can get the zip file in modules/distribution folder. Run the product and check if you can access management console. 6. Next step is to build your feature so local m2 repository get the jar files of your feature. 7. Then, you can fork product-is and modify parent pom [6] adding a new property for your feature's version. Similar to below property, you can add your own one. <identity.userstore.remote.version>5.1.1</identity.userstore.remote.version> 8. Modify the p2-profile-get pom file [7] and include your feature there. You can search for "*user.store.remote.feature*" and following that, add details for your feature. 9. Then re-build the product-is, get the zip file, run it and in Management Console, check if mongodb userstore is listed. Also you can check if the jar file is packed in plugins. 10. Finally send a PR to product-is with these changes. [1] https://github.com/asanthamax/identity-userstore-mongodb/tree/master/features [2] https://github.com/wso2-extensions/identity-userstore-remote/blob/master/features/etc/feature.properties [3] https://github.com/wso2-extensions/identity-userstore-remote/tree/master/features/org.wso2.carbon.identity.user.store.remote.server.feature [4] https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1 [5] https://github.com/wso2/product-is/ [6] https://github.com/wso2/product-is/blob/master/pom.xml [7] https://github.com/wso2/product-is/blob/master/modules/p2-profile-gen/pom.xml Thanks, TharinduE On Tue, Aug 16, 2016 at 1:13 PM, Asantha Thilina <[email protected]> wrote: > Hi Tharindu, > > According to your instructions i have added the components folder with the > mongodbuserstore package to my forked repo[1] and i also sent the pull > request to origin also[2] i have refactor the main package to > *org.wso2.carbon.identity.user.store.mo > <http://org.wso2.carbon.identity.user.store.mo>**ngodb * > expecting your feedback > [1] https://github.com/asanthamax/identity-userstore-mongodb > [2] https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1 > Thanks, > Asantha > > On Tue, Aug 16, 2016 at 2:45 AM, Tharindu Edirisinghe <[email protected]> > wrote: > >> Hi Asantha, >> >> Now that you have completed the project [1], for the final evaluation, >> you need to contribute your code to WSO2 codebase. >> >> For that, we have created the repository [2]. >> >> You can refer [3] to get some idea about the package structure of the >> repo. >> >> Further, you can refactor your project and rename the main package to >> *org.wso2.carbon.identity.user.store.mo >> <http://org.wso2.carbon.identity.user.store.mo>**ngodb*. >> >> You can send a pull request with these. >> >> I will help you with writing the feature and creating the parent pom file >> later. >> >> >> [1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+201 >> 6#ProjectProposalsfor2016-Proposal21:[IS]DocumentBasedNoSQLS >> upportforWSO2IdentityServerDatabase >> [2] https://github.com/wso2-extensions/identity-userstore-mongodb >> [3] https://github.com/wso2-extensions/identity-userstore-remote >> >> Thank you, >> TharinduE >> -- >> >> Tharindu Edirisinghe >> Senior Software Engineer | WSO2 Inc >> Platform Security Team >> Blog : tharindue.blogspot.com >> mobile : +94 775181586 >> > > -- Tharindu Edirisinghe Senior Software Engineer | WSO2 Inc Platform Security Team Blog : tharindue.blogspot.com mobile : +94 775181586
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
