Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Integrating BIRT with Maven
Tuco
Hi, <br />
<br />
I am trying to use BIRT for our reports and we are using Maven for builds.<br />
<br />
This is what i have included in the pom.xml<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>chartengineapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>coreapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>dataadapterapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>engineapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>modelapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>scriptapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.birt</groupId>
<artifactId>dteapi</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>3.8.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.6R7</version>
<scope>provided</scope>
</dependency></pre>
<br />
Note that the version is mentioned as 2.3.2 and the scope is given as provided.<br />
However the birt runtime that i am using is of version 3.7<br />
<br />
Do we have the other version of birt(apart from the 2.3.2 version above) which can be defined in pom, and are these dependencies sufficient.<br />
<br />
In the above, i had to give <scope> as provided, so that the maven does not include these in the war which it creates, and the addition of these libraries is left to the container(which are added by adding the libraries in the birt-runtime to the tomcat at startup). <br />
<br />
If i remove the provided scope, the war created has some of the birt libraries, but when i try to startup the Birt Engine in the java code, it gives an exception (it could be probably because some of the libraries conflict with the birt runtime libraries, which are also included in the classpath when the tomcat is started).<br />
<br />
Ideally i would want to include the BIRT libraries in the war itself which are created by maven. <br />
<br />
Is it possible or am i doing something wrong here.<br />
<br />
Thanks a lot..<br />
<br />
Tuco
Find more posts tagged with
Comments
mwilliams
I haven't integrated BIRT and Maven myself, but have you seen this devShare post?
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/822-birt-with-maven/
Tuco
Thanks Michael, i will have a look at it.