pro-crafting / Jasper-report-maven-plugin

A fast jasper report maven plugin
Apache License 2.0
24 stars 2 forks source link

NoClassDefFoundError: org/mozilla/javascript/EvaluatorException #86

Closed ben-arce-hdz closed 2 months ago

ben-arce-hdz commented 2 months ago

java 11 maven 4 rhino 1.7.14 jasperreports-plugin 3.5.0

getting the following error: Failed to execute goal com.pro-crafting.tools:jasperreports-plugin:3.6.1:jasper (default) on project CrovRestaurante: Error while compiling Jasper reports: java.lang.NoClassDefFoundError: org/mozilla/javascript/EvaluatorException: org.mozilla.javascript.EvaluatorException -> [Help 1]

Postremus commented 2 months ago

Hey @ben-arce-hdz

I just released Version 3.6.2 of this plugin, which includes a fix vor this. However this also updates to jasper 6.21.3.

If this causes problems for you, there is a workaround available instead of updating - add the missing dependency to your plugin definition.

<plugin>
  <groupId>com.pro-crafting.tools</groupId>
  <artifactId>jasperreports-plugin</artifactId>
  <version>3.6.0</version>
  <dependencies>
    <dependency>
      <groupId>org.mozilla</groupId>
      <artifactId>rhino</artifactId>
      <version>1.7.14</version>
    </dependency>
  </dependencies>
</plugin>