What necessary dependencies need to implement in Java Maven project which JasperReport version is 6.16.0?

0

As my question mentioned, assume that the requested version of JasperReport in Java project is 6.16.0.

Jaspersoft Studio is also version 6.16.0 to generate the reports.

The Java Maven project is used to export and generate PDF or Excel.

Can anyone list out some necessary or requested dependencies to me for reference?

Thank you so much!!

eggchun32's picture
Joined: Mar 16 2021 - 12:17am
Last seen: 6 months 4 weeks ago

1 Answer:

0

I haven't used it for generating Excel files, but pdfs just require the library itself:

<!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.16.0</version>
</dependency>

However, if your project requires some of the extentions this library, the POM should also contain them. For example, the Custom Visualization Components extention requires the following dependency:

</dependency>
<!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports-cu... -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-custom-visualization</artifactId>
<version>6.16.0</version>
</dependency>

dhombios's picture
Joined: Mar 25 2021 - 10:51am
Last seen: 8 months 1 week ago
Feedback