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!!
1 Answer:
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>