[ https://jira.codehaus.org/browse/MCOMPILER-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308746#comment-308746 ]
Clebert Suconic commented on MCOMPILER-181: ------------------------------------------- I was going to rename this JIRA to "Exception on compilation are not properly reported" Which will probably be an easy issue for you... I already talked to the jboss-logging lead, this is a bug on their code. If the exception was properly reported I wouldn't have bothered you guys... But thanks a lot for the help > NullPointerException on MacOS computer > -------------------------------------- > > Key: MCOMPILER-181 > URL: https://jira.codehaus.org/browse/MCOMPILER-181 > Project: Maven 2.x Compiler Plugin > Issue Type: Bug > Affects Versions: 2.5, 2.5.1 > Environment: MacOS 10.8.1 and 10.7.x > Macintosh-3:~ clebertsuconic$ mvn -version > Apache Maven 3.0.4 (r1232337; 2012-01-17 02:44:56-0600) > Maven home: /work/maven/apache-maven-3.0.4 > Java version: 1.6.0_35, vendor: Apple Inc. > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home > Default locale: en_US, platform encoding: MacRoman > OS name: "mac os x", version: "10.8.1", arch: "x86_64", family: "mac" > Reporter: Clebert Suconic > > I'm facing a NullPointerException on my project (HornetQ/master) when we > update the maven-compiler to 2.5.1 or 2.5. It all works fine with 2.3.2 and > as soon as we update it we start having these NPEs. > It's funny that's only happening on MacOS for us while all our Linux Envs are > working fine. I'm not sure the root cause but it may be something that would > eventually happen in other environments as well. > Steps to reproduce it: > I don't have an isolated issue, but you can reproduce on my project: > On a MacOS: > git clone git://github.com/hornetq/hornetq.git > edit the maven-compiler version to 2.5.1 on the main pom > and use mvn package > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 2.592s > [INFO] Finished at: Fri Sep 14 09:22:23 CDT 2012 > [INFO] Final Memory: 9M/81M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > (default-compile) on project hornetq-commons: Compilation failure > [ERROR] error: java.lang.NullPointerException > [ERROR] -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile > (default-compile) on project hornetq-commons: Compilation failure > error: java.lang.NullPointerException > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > 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:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation > failure > error: java.lang.NullPointerException > at > org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729) > at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > ... 19 more > [ERROR] > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira