Jasper-report-maven-plugin icon indicating copy to clipboard operation
Jasper-report-maven-plugin copied to clipboard

Configuration properties ignored when using Plugin v4, old artifact id and Maven 3.8.4

Open DManstrator opened this issue 1 year ago • 2 comments

After updating this plugin to v4, the build is failing due to not finding the configured source folder.

[ERROR] Failed to execute goal com.pro-crafting.tools:jasperreports-maven-plugin:4.0.0:jasper (default) on project <redacted>: Execution default of goal com.pro-crafting.tools:jasperreports-maven-plugin:4.0.0:jasper failed: Configured source directory C:\<redacted>\report\src\main\jasperreports is not a directory

The source folder mentioned in the exception message does in fact not exist but this is also not the configured source folder. It seems that the configured values are ignored now.

image

There are multiple ways to fix this issue:

  • Using a higher Maven version (e.g. Maven 3.9.0) (Currently I use Maven 3.8.4).
  • Using the new artifact id (jasperreports-maven-plugin).

Doing one of those options fixes the issue and I'm certainly not sure how this is possible to be honest. I can provide the full debug logs if needed.

Kind regards,

Daniel

DManstrator avatar Sep 11 '24 10:09 DManstrator