Hi Glen,
Thanks. I'll take a closer look. I'll let you know if I need more info.
Peter
On 20/11/2012, at 10:47 AM, Glen Marchesani <
gl...@model3.net> wrote:
>
> Does anyone have any guidance for this NPE? It happens after/during a clean install on a pretty basic scala project. I have tried to isolate the sequence of events to trigger it with no luck but it does happen intermittently and when it does I have to remove the <recompileMode>incremental</recompileMode> to get things compiling again.
>
> I am using version 3.1.0 of the scala-maven-plugin
>
> I am happy to isolate and post a project the reproduces the error to github if that helps diagnosing.... Or submit a patch.
>
>
> <plugin>
>
> <groupId>net.alchim31.maven</groupId>
> <artifactId>scala-maven-plugin</artifactId>
>
> <configuration>
> <recompileMode>incremental</recompileMode>
> <useZincServer>true</useZincServer>
> </configuration>
> <executions>
> <execution>
> <id>scala-compile-first</id>
> <phase>process-resources</phase>
> <goals>
> <goal>add-source</goal>
> <goal>compile</goal>
> </goals>
> </execution>
> <execution>
> <id>scala-test-compile</id>
> <phase>process-test-resources</phase>
> <goals>
> <goal>testCompile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
>
> [INFO] Final Memory: 13M/258M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (default) on project ahs-mobidash-scala: Execution default of goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile (default) on project ahs-mobidash-scala: Execution default of goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile failed.
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
> 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:319)
> 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.PluginExecutionException: Execution default of goal net.alchim31.maven:scala-maven-plugin:3.1.0:compile failed.
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.lang.NullPointerException
> at scala_maven.ScalaCompilerSupport.getAnalysisCacheMap(ScalaCompilerSupport.java:309)
> at scala_maven.ScalaCompilerSupport.incrementalCompile(ScalaCompilerSupport.java:287)
> at scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:118)
> at scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:99)
> at scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:400)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> ... 20 more