[
https://jira.codehaus.org/browse/MCHECKSTYLE-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364391#comment-364391
]
W Herget commented on MCHECKSTYLE-288:
--------------------------------------
I'm seeing this as well (albeit using checkstyle-plugin in the {{validate}}
phase), and I'm using the recommended setup from
http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html#Configure_the_other_projects_to_use_it
The problem also seems to depend on the build environment, which I find rather
odd. An older version of maven works just fine:
{noformat}
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19
14:51:28+0100)
Maven home: /Applications/NetBeans/NetBeans
8.0.2.app/Contents/Resources/NetBeans/java/maven
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
{noformat}
whereas a newer one has this problem
{noformat}
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
2014-08-11T22:58:10+02:00)
Maven home: /usr/local/Cellar/maven/3.2.3/libexec
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac"
{noformat}
In my setup, I don't even use license header checks, so my resources project
contains an empty LICENSE.txt file.
I can fix the NPE by specifying {{/dev/null}} as the {{<headerLocation>}}, but
that's obviously not portable.
> NullPointerException during building a multi-module project
> -----------------------------------------------------------
>
> Key: MCHECKSTYLE-288
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-288
> Project: Maven Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.13, 2.14
> Environment: Apache Maven 3.2.5
> Reporter: Peter Jeszenszky
> Attachments: geocoder-parent.zip
>
>
> A NullPointerException is thrown during the execution of "mvn site" in a
> multi-module project, that is clearly caused by the Maven Checkstyle Plugin.
> The problem occurs when version 2.13 or 2.14 of the plugin is used,
> everything works fine when the plugin version is downgraded to version 2.12.
> I have attached a project in which the problem occurs.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)