Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.8.0
-
None
-
None
Description
If I have a dependency on org.javamoney version 1.3 maven builds crash.
This is the problem dependancy:
<!-- https://mvnrepository.com/artifact/org.javamoney/moneta -->
<dependency>
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<version>1.3</version>
<type>pom</type>
</dependency>
The error is:
Caused by: java.lang.NullPointerException at org.apache.maven.plugin.compiler.CompilerMojo.preparePaths (CompilerMojo.java:244) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:787) at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:188) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.
Clearly this is caused by the while loop assuming that getValue().getCause() doesn't return a null which it does in this case.
Attachments
Issue Links
- duplicates
-
MCOMPILER-355 NPE in CompilerMojo.preparePaths on exception
- Closed