Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Integrating BIRT with Maven
Integrating BIRT with Maven [message #710325] Thu, 04 August 2011 23:03 Go to next message
Tuco  is currently offline Tuco
Messages: 6
Registered: August 2011
Junior Member
Hi,

I am trying to use BIRT for our reports and we are using Maven for builds.

This is what i have included in the pom.xml

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


Note that the version is mentioned as 2.3.2 and the scope is given as provided.
However the birt runtime that i am using is of version 3.7

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.

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

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

Ideally i would want to include the BIRT libraries in the war itself which are created by maven.

Is it possible or am i doing something wrong here.

Thanks a lot..

Tuco

Re: Integrating BIRT with Maven [message #713647 is a reply to message #710325] Mon, 08 August 2011 17:35 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

What repo are you using? I do not think the 3.7 plugins are uploaded to
a repo yet. I build a seam app with BIRT using a local repo, but I am
not certain that will help you.

Jason

On 8/4/2011 7:03 PM, Tuco wrote:
> Hi,
> I am trying to use BIRT for our reports and we are using Maven for builds.
>
> This is what i have included in the pom.xml
>
> <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>
>
> Note that the version is mentioned as 2.3.2 and the scope is given as
> provided.
> However the birt runtime that i am using is of version 3.7
>
> 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.
>
> 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).
> 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).
>
> Ideally i would want to include the BIRT libraries in the war itself
> which are created by maven.
> Is it possible or am i doing something wrong here.
>
> Thanks a lot..
>
> Tuco
>
Previous Topic:Urgent : Birt Viewer - To Jason
Next Topic:BIRT Exception
Goto Forum:
  


Current Time: Mon Sep 22 12:19:30 GMT 2014

Powered by FUDForum. Page generated in 0.08038 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software