Jasper-report-maven-plugin
Jasper-report-maven-plugin copied to clipboard
Compiling reports that use Java Beans on the same project
Hello, my reports use Java Beans that are on the same project, when I compile them with this plugin it saids that can not find this classes.
For example, one of my reports receives a parameter of type me.monge.virtual.reportes.SvgLogoWrapper
(a class created by me) but then trying to compile it with this plugin, it saids:
me.monge.virtual.reportes.SvgLogoWrapper cannot be resolved to a type
Is there any recommended configuration for this to work? Thank you in advance.
any solution for this?
Interesting. I think, I had the same problem recently. Could not solve it, yet.
I just solved this by adding the following
<configuration>
<additionalClasspath>${project.baseUri}</additionalClasspath>
<additionalClasspath>${project.basedir}</additionalClasspath>
</configuration>
Now I have the following problem
The constructor BigDecimal(BigDecimal) is undefined
any ideas?
Maybe because BigInteger (unlike Integer or Double) is not in package java.lang, so you need to import it within the report?
We seem to be encountering the same issue after changing the jasperreports-plugin from version 2.3 to a higher version (2.4 to 2.8 all result in the "cannot be resolved to a type" problem). Has anyone been able to find a solution? The additionalClasspath configuration property as proposed by @aLeXcBa1990 does not solve the problem on our end.