简体   繁体   中英

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. 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. 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?

Here are what I use:

  1. Eclipse EE Mars
  2. Egit plugin
  3. m2e plugin (Maven Integration for Eclipse)
  4. 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,

mvn eclipse:eclipse

This will solve your eclipse and maven dependecy errors.

Also you can check whether the problem is with your imported project , ie missing any libraries or just with 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.

Note: Run the commands from the place where your pom.xml resides.

Make sure you've set jre 1.7 and not jdk. from command line go to the pom.xml directory and run

mvn package -Pmars -DskipTest

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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