wso2 carbon hacking-eclipse开发环境搭建步骤 [英] wso2 carbon hacking - eclipse development environment set up steps

查看:25
本文介绍了wso2 carbon hacking-eclipse开发环境搭建步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可以在eclipse中设置碳源树,以便eclipse可以用于构建和运行碳,那就太好了.这可能吗?WSO2 碳开发者如何设置他们的开发环境?

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?

例如基于eclipse 4.3 RC2 Java EE:

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(首先确保你有足够的永久空间,例如set MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M)
  4. $ mvn eclipse:eclipse
  5. 确保 eclipse M2_REPO 变量指向您的 ~/.m2/repository 文件夹
  6. 将所有'dependencies/axiom'子项目导入eclipse(Existing Projects into Workspace)
  7. 选择所有maven项目,右击Disable Maven Nature
  8. 为哪些项目重复第 6 步和第 7 步???
  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???

步骤是什么?在导入完成且 eclipse 构建完成后,我是否应该期望在 eclipse 错误窗口中显示错误(参见下面的屏幕截图)?

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?

推荐答案

导入后需要设置classpath.为此,构建路径--> 配置构建路径,您将看到库列在 M2_REPO 文件夹下.因此,您可能需要创建一个名为 M2_REPO 的变量,其路径必须指向您本地的 m2-repository;例如:

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

这篇关于wso2 carbon hacking-eclipse开发环境搭建步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆