Hi everyone, Recently I started using license-maven-plugin. It is very useful, so thanks to the authors!
I encountered a problem with license:update-file-header when the copyright holder string spans multiple lines. E.g.: https://github.com/imagej/imagej/blob/master/pom.xml#L31 I have included the line breaks for organizationName to keep the license block under 80 characters per line. This works fine for adding the initial license blocks, but causes an exception to be thrown when processing files that already have a proper header: https://gist.github.com/2220296 I debugged the issue, and it comes down to the copyright regex using dot (.) to match any character. But dot does not match newlines by default. The fix is easy: pass the Pattern.DOTALL flag when compiling the pattern. I fixed the problem on a branch "fix-multi-line-copyright" on my Git mirror of the code: https://github.com/ctrueden/license-maven-plugin/tree/fix-multi-line-copyright The relevant commit is: https://github.com/ctrueden/license-maven-plugin/commit/01a76e7b15b750ec0c396e391a544dc803f86003 I would greatly appreciate if the maintainer(s) could include this patch upstream! Thanks, Curtis P.S. Running "mvn install" takes a long time and eventually fails: https://gist.github.com/2220389 (For testing, I had to use "mvn install:install-file" to manually install the new JAR into my local repo.) What is the best way to avoid this issue? I tried with "-DskipTests" but the same failure still occurs.