Question

It would be great if the carbon source tree could be set up in eclipse so that eclipse can be used for building and running carbon. Is this possible? How do the WSO2 carbon developers set up their development environments?

For example based on eclipse 4.3 RC2 Java EE:

  1. $ svn checkout http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.1.0 wso2carbon
  2. $ cd wso2carbon
  3. $ mvn install -Dmaven.test.skip=true (first ensure you have enough permgen space, e.g. set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M)
  4. $ mvn eclipse:eclipse
  5. ensure eclipse M2_REPO variable points to your ~/.m2/repository folder
  6. import all'dependencies/axiom' sub-projects into eclipse (Existing Projects into Workspace)
  7. select all maven projects, right click and Disable Maven Nature
  8. repeat step 6 and 7 for which projects???

What are the steps? Should I expect errors be shown (see screenshot, below) in the eclipse error window after the import has completed and eclipse build has finished?

build errors

Was it helpful?

Solution

After importing, you need to set the classpath. for that,buildpath-->configure buildpath, you will see libraries are listed under M2_REPO,folder. So, you might need to create a variable called M2_REPO,its path has to point your local m2-repository; eg:

Name: M2_REPO
path: C:/Users/TOSH/m2-repo/repository
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top