简体   繁体   English

如何在Eclipse Mars中构建和运行BIRT源代码

[英]How to build and run BIRT source in Eclipse Mars

I was able to pull the BIRT source (4.2.2 branch) from here: https://github.com/eclipse/birt/ using m2e (Maven integration for Eclipse) and imported it in my eclipse workspace. 我能够从这里获取BIRT源(4.2.2分支): https//github.com/eclipse/birt/使用m2e(Eclipse的Maven集成)并将其导入我的eclipse工作区。 The BIRT documentation ( https://wiki.eclipse.org/BIRT/FAQ/Birt_Project#Q:_How_to_Build_BIRT_3.7.1.2B_from_GIT.3F ) seems to be outdated. BIRT文档( https://wiki.eclipse.org/BIRT/FAQ/Birt_Project#Q:_How_to_Build_BIRT_3.7.1.2B_from_GIT.3F )似乎已经过时了。 As a result, I'm having many issues building the source. 结果,我在构建源代码时遇到了很多问题。

My question is: Can anyone explain to me how I can build the 4.x source using Eclipse? 我的问题是:有人可以向我解释如何使用Eclipse构建4.x源代码吗?

Here are what I use: 这是我使用的:

  1. Eclipse EE Mars Eclipse EE火星
  2. Egit plugin Egit插件
  3. m2e plugin (Maven Integration for Eclipse) m2e插件(Eclipse的Maven集成)
  4. Java 1.5/6/7/8 Java 1.5 / 6/7/8

在此输入图像描述

The best way to do it is, after importing the project in your eclipse workspace, run below maven command to make it compatible with Eclipse, 最好的方法是,在eclipse工作区中导入项目之后,运行maven命令以使其与Eclipse兼容,

mvn eclipse:eclipse

This will solve your eclipse and maven dependecy errors. 这将解决您的日食和maven依赖性错误。

Also you can check whether the problem is with your imported project , ie missing any libraries or just with eclipse. 您还可以检查问题是否与导入的项目有关,即缺少任何库或仅使用eclipse。

You can try to build the project from command prompt to check the same with 您可以尝试从命令提示符构建项目以检查相同的内容

mvn clean install

Once done refresh the eclipse workspace. 完成后刷新eclipse工作区。

Note: Run the commands from the place where your pom.xml resides. 注意:从pom.xml所在的位置运行命令。

Make sure you've set jre 1.7 and not jdk. 确保你设置了jre 1.7而不是jdk。 from command line go to the pom.xml directory and run 从命令行转到pom.xml目录并运行

mvn package -Pmars -DskipTest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM