Monday, December 8, 2014

How to setup WSO2 p2 repo in your local machine

You can point wso2 p2 repository online through  http://dist.wso2.org/p2/carbon/releases/turing/ url (you can use any release replacing turing). But if you cannot fetch features from internet , better solution is set up whole p2 repo locally and then point to your local installation. Follow these steps to install and use it

1. Go to your prefferred folder to install p2_repo in.

mine is "/home/malintha/my_p2"

2. open terminal there and execute below command.

wget -r  -l inf -p -e robots=off http://dist.wso2.org/p2/carbon/releases/turing/

Note: Here "http://dist.wso2.org/p2/carbon/releases/turing/" is the URL of the p2 repo. Change it according to the release.

3. Now everything in p2 repo will be downloaded in to your local location.

4. After completion of the download you can use local path as

"/home/malintha/my_p2/dist.wso2.org/p2/carbon/releases/turing/" to point p2_repo local installed location when you need it

No comments:

Post a Comment