Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

enter image description here

like image 247
PinoyCoder Avatar asked May 05 '16 02:05

PinoyCoder


People also ask

How do I use Eclipse Birt?

Find what you need at: github.com/eclipse/birt. To open it, use the Window item on the Eclipse main menu. Choose Open Perspective, then Report Design. If report Design does not appear directly in the Open Perspective window, then choose Other... A list of perspectives will appear.


2 Answers

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 , i.e. 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.

like image 134
darshgohel Avatar answered Oct 15 '22 10:10

darshgohel


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
like image 24
Rabih El Khatib Avatar answered Oct 15 '22 11:10

Rabih El Khatib