[ 
https://issues.apache.org/jira/browse/MCOMPILER-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562683#comment-16562683
 ] 

Karl Heinz Marbaise commented on MCOMPILER-356:
-----------------------------------------------

The same comment as in previous issue please format the description better and 
please add a full code example with it...and please add the full commands you 
have used...otherwise it's impossible to reproduce this...

> javax.money cause maven build to crash
> --------------------------------------
>
>                 Key: MCOMPILER-356
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-356
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.8.0
>         Environment: mvn -version
> Apache Maven 3.5.2
> Maven home: /usr/share/maven
> Java version: 10.0.1, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-11-openjdk-amd64
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-29-generic", arch: "amd64", family: "unix"
>            Reporter: Brett Sutton
>            Priority: Major
>
> If I have a dependency on org.javamoney version 1.3 maven builds crash.
>  
> This is the problem dependancy:
>  
> {code:java}
> <!-- https://mvnrepository.com/artifact/org.javamoney/moneta -->
>   <dependency>
>   <groupId>org.javamoney</groupId>
>   <artifactId>moneta</artifactId>
>   <version>1.3</version>
>   <type>pom</type>
>   </dependency>{code}
>  
> The error  is: 
>  
> {code:java}
> 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.
> {code}
> Clearly this is caused by the while loop assuming that getValue().getCause() 
> doesn't return a null which it does in this case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to