title: Maven compiler plugin null pointer
body: <p>I have a problem during run of my tests by terminal. I need to run mvn install, but I get:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ProjectName: Fatal error compiling: CompilerException: NullPointerException -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ProjectName: Fatal error compiling
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
  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.java:56)
  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
  at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
  at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke (Method.java:564)
  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
  at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
  at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
  </code></pre>
  
  <p>I tried to run it with different versions of compiler. When running tests by testNG in Eclipse everything works fine. The problem occurs when running through terminal. These are cucumber tests of mobile application. Runner uses Appium.</p>