wso2 carbon hacking - eclipse development environment set up steps

时间秒杀一切 提交于 2019-12-13 12:22:19

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/16927636/wso2-carbon-hacking-eclipse-development-environment-set-up-steps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!