Hello Michael
There is a known issue that has been fixed in SVN, that affects people
that run Maven with a locale other than English or French. It gives an
error-message similar to what you got.
There is currently a vote going on, on the dev-list, about the release
of a new version of the maven-checkstyle-plugin.
--
Dennis Lundberg
Michael Ransley wrote:
Hello,
I am new to Maven and have just started playing around with it. I have
implemented the simple project that is defined in the getting started guide
and have then also implemented the eclipse stuff. So far so good. I then
started adding in a checkstyle reporting task and get the following
exception generated:
---------------------------------------------------
java.lang.NullPointerException
at
org.apache.maven.usability.diagnostics.DiagnosisUtils.appendRootCauseIfPresentAndUnique
(DiagnosisUtils.java:89)
at
org.apache.maven.usability.diagnostics.ErrorDiagnostics$PuntErrorDiagnoser.diagnose
(ErrorDiagnostics.java :132)
at org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(
ErrorDiagnostics.java:104)
at org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:693)
at org.apache.maven.DefaultMaven.logFatal (DefaultMaven.java:627)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:143)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java :324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
When I take the checkstyle bit out of the pom.xml everything is fine again
so it is definately the checkstyle plugin that is causing the problem. The
element of the pom that mentions checkstyle is below:
<reporting>
<outputDirectory>target/site</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</reporting>
Does anyone have any ideas?
Regards
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]