<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to integrate with JasperReports (build.gradle &amp; bnd.bnd files)</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120509439" />
  <subtitle>How to integrate with JasperReports (build.gradle &amp; bnd.bnd files)</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120509439</id>
  <updated>2026-04-04T15:16:19Z</updated>
  <dc:date>2026-04-04T15:16:19Z</dc:date>
  <entry>
    <title>RE: How to integrate with JasperReports (build.gradle &amp; bnd.bnd files)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121794061" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121794061</id>
    <updated>2023-05-17T07:26:53Z</updated>
    <published>2023-05-17T07:26:52Z</published>
    <summary type="html">&lt;p&gt;hi Victor&lt;/p&gt;
&lt;p&gt;thank you very much for sharing. &lt;/p&gt;
&lt;p&gt;i am using liferay 7.4, it cannot work with this setting&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2023-05-17T07:26:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to integrate with JasperReports</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120509454" />
    <author>
      <name>Victor Manea</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120509454</id>
    <updated>2020-12-18T10:38:45Z</updated>
    <published>2020-12-18T10:38:36Z</published>
    <summary type="html">&lt;p&gt;The main difficult point was to deploy the module without any error.
  The thrown exceptions were saying that different packages could not be
  found at runtime. This errors were caused by wrong bnd.bnd file setup.
  Bellow is the bnd.bnd file content in the final form:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;Bundle-Name: PdfModule
Bundle-SymbolicName: PdfModule
Bundle-Version: 1.0.0
Liferay-Configuration-Path: /configuration
Import-Package:\
    !antlr*,\
    !com.adobe.xmp*,\
    !com.github.kklisura*,\
    !com.google.zxing*,\
    !com.ibm.icu.lang*,\
    !com.ibm.icu.util*,\
	!groovy.lang*,\
	!groovyjarjarasm.asm*,\
	!mondrian.*,\
	!net.sf.jasperreports.annotations.properties*,\
	!net.sf.jasperreports.metadata.properties*,\
	!net.sourceforge.barbecue*,\
	!org.apache.batik*,\
	!org.apache.commons.javaflow*,\
	!org.apache.commons.pool2*,\
	!org.apache.http*,\
	!org.apache.lucene*,\
	!org.apache.poi*,\
	!org.apache.velocity*,\
	!org.codehaus*,\
	!org.eclipse.jdt.core.index*,\
	!org.eclipse.jdt.core.util*,\
	!netscape.ldap*,\
	!org.apache.oro*,\
	!org.hibernate.query*,\
	!org.kohsuke.groovy.sandbox*,\
	!org.krysalis.barcode4j*,\
	!org.mozilla.javascript*,\
	!org.olap4j*,\
	!org.springframework*,\
	!org.w3c.dom.svg*,\
	!org.bouncycastle*,\
    *
Include-Resource: @jasperreports-6.16.0.jar,@commons-collections4-4.2.jar,@commons-digester-2.1.jar,@ecj-3.21.0.jar,@castor-xml-1.4.1.jar,@commons-lang3-3.9.jar,@castor-core-1.4.1.jar,@jfreechart-1.0.19.jar,@jcommon-1.0.24.jar,@jackson-databind-2.10.0.jar,@jackson-core-2.10.0.jar,@jackson-annotations-2.10.0.jar,@itext-2.1.7.jar
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;And bellow, the build.gradle file:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;dependencies {
	compileOnly group: &amp;quot;javax.ws.rs&amp;quot;, name: &amp;quot;javax.ws.rs-api&amp;quot;
	compileOnly group: &amp;quot;org.osgi&amp;quot;, name: &amp;quot;org.osgi.service.component.annotations&amp;quot;
	compileOnly group: &amp;quot;org.osgi&amp;quot;, name: &amp;quot;org.osgi.service.jaxrs&amp;quot;
    
    // Jasper
    compileOnly group: 'net.sf.jasperreports', name: 'jasperreports', version: '6.16.0'
	compileOnly group: 'org.apache.commons', name: 'commons-collections4', version: '4.2'
	compileOnly group: 'com.lowagie', name: 'itext', version: '2.1.7'
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It may not be in their best case form, but it will save you a lot of
  time starting from these.&lt;/p&gt;
&lt;p&gt;If you have any suggestions, please do share ! :)&lt;/p&gt;</summary>
    <dc:creator>Victor Manea</dc:creator>
    <dc:date>2020-12-18T10:38:36Z</dc:date>
  </entry>
  <entry>
    <title>How to integrate with JasperReports (build.gradle &amp; bnd.bnd files)</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120509438" />
    <author>
      <name>Victor Manea</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120509438</id>
    <updated>2020-12-18T10:39:19Z</updated>
    <published>2020-12-18T10:29:28Z</published>
    <summary type="html">&lt;p&gt;I am creating this question/topic in order to share my experience
  integrating the jasperreports library - I did not find any relating
  post about how to really make it work.&lt;/p&gt;</summary>
    <dc:creator>Victor Manea</dc:creator>
    <dc:date>2020-12-18T10:29:28Z</dc:date>
  </entry>
</feed>
