droid
droid copied to clipboard
Newer version of license-maven-plugin fails with an error about missing headers
I think this is probably related to the implementation in the plugin, however it potentially affects our build.
Our headers are in the JAVADOC comment form, however the plugin detects it as SLASHSTAR format, so when it compares it thinks that we have an extra * on the first line of the header and fails the build.
Observed on Ubuntu 20.04, Java 8. It may be totally dependent on how the plugin loads its various definitions causing it to match the wrong one. The 2 defs in the plugin code are as follows:
JAVADOC_STYLE("/**", " * ", " */", "", null, "(\\s|\\t)*/\\*.*$", ".*\\*/(\\s|\\t)*$", false, true, false),
SLASHSTAR_STYLE("/*", " * ", " */", "", null, "(\\s|\\t)*/\\*.*$", ".*\\*/(\\s|\\t)*$", false, true, false),
If we move up to the newer version of the plugin, we will need to address this issue.