title: Java 11 + maven + lombok + spring boot project returning Can't extract module name from xpp3_min-1.1.4c
body: <p>I have a very simple project based on Spring Boot, Java 11 and Lombok. I can't build it (see error bellow). I read here <a href="https://github.com/rzwitserloot/lombok/issues/1723" rel="nofollow noreferrer">https://github.com/rzwitserloot/lombok/issues/1723</a> some people complaining about Java 11 modularity with Lombok but since the issue is almost one year ago and the description is different than mine I will assume it is not relevant for my case.</p>
  
  <p>It seams that I am missing some concept either regard during compiling (eg. some extra step in pom.xml) or somehow adding Lombok in module-path.</p>
  
  <pre><code>package com.test.common;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
  
  @SpringBootApplication
  @EnableEurekaClient
  public class CommonApplication {
      public static void main(String[] args) {
          SpringApplication.run(CommonApplication.class, args);
      }
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>package com.test.common.security;
  
  import org.springframework.beans.factory.annotation.Value;
  
  import lombok.Getter;
  import lombok.ToString;
  
  @Getter
  @ToString
  public class JwtConfig {
  
      // Spring doesn't inject/autowire to "static" fields. 
      // Link: https://stackoverflow.com/a/6897406
      @Value("${security.jwt.uri:/auth/**}")
      private String Uri;
  
      @Value("${security.jwt.header:Authorization}")
      private String header;
  
      @Value("${security.jwt.prefix:Bearer }")
      private String prefix;
  
      @Value("${security.jwt.expiration:#{24*60*60}}")
      private int expiration;
  
      @Value("${security.jwt.secret:JwtSecretKey}")
      private String secret;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>module common {
      exports com.test.common.security;
      exports com.test.common;
  
  
      requires lombok;
      requires spring.beans;
      requires spring.boot;
      requires spring.boot.autoconfigure;
      requires spring.cloud.netflix.eureka.client;
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.1.3.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;com.test&lt;/groupId&gt;
      &lt;artifactId&gt;common&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;common&lt;/name&gt;
      &lt;description&gt;Zuul project&lt;/description&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
          &lt;spring-cloud.version&gt;Greenwich.SR1&lt;/spring-cloud.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-server&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
                  &lt;version&gt;${spring-cloud.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Complete error:</p>
  
  <pre><code>PS C:\_d\WSs\soteste\common&gt; mvn install
  [INFO] Scanning for projects...
  [INFO]
  [INFO] --------------------------&lt; com.test:common &gt;---------------------------
  [INFO] Building common 0.0.1-SNAPSHOT
  [INFO] --------------------------------[ jar ]---------------------------------
  [INFO]
  [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ common ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 1 resource
  [INFO] Copying 0 resource
  [INFO]
  [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ common ---
  [WARNING] Can't extract module name from xpp3_min-1.1.4c.jar: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module
  [WARNING] ********************************************************************************************************************
  [WARNING] * Required filename-based automodules detected. Please don't publish this project to a public artifact repository! *
  [WARNING] ********************************************************************************************************************
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 3 source files to C:\_d\WSs\soteste\common\target\classes
  [INFO]
  [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ common ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory C:\_d\WSs\soteste\common\src\test\resources
  [INFO]
  [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ common ---
  [WARNING] Can't extract module name from xpp3_min-1.1.4c.jar: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 1 source file to C:\_d\WSs\soteste\common\target\test-classes
  [INFO]
  [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ common ---
  [INFO]
  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [WARNING] Corrupted STDOUT by directly writing to native stream in forked JVM 1. See FAQ web page and the dump file C:\_d\WSs\soteste\common\target\surefire-reports\2019-03-20T18-47-40_749-jvmRun1.dumpstream
  [INFO]
  [INFO] Results:
  [INFO]
  [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  8.032 s
  [INFO] Finished at: 2019-03-20T18:47:42-03:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project common: There are test failures.
  [ERROR]
  [ERROR] Please refer to C:\_d\WSs\soteste\common\target\surefire-reports for the individual test results.
  [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
  [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-11.0.2\bin\java" @C:\Users\resource\AppData\Local\Temp\surefire12554810325212725181\surefireargs18082250267355398068 C:\Users\resource\AppData\Local\Temp\surefire12554810325212725181 2019-03-20T18-47-40_749-jvmRun1 surefire11396085758725333238tmp surefire_06534283884049913949tmp"
  [ERROR] Error occurred in starting fork, check output in log
  [ERROR] Process Exit Code: 1
  [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-11.0.2\bin\java" @C:\Users\resource\AppData\Local\Temp\surefire12554810325212725181\surefireargs18082250267355398068 C:\Users\resource\AppData\Local\Temp\surefire12554810325212725181 2019-03-20T18-47-40_749-jvmRun1 surefire11396085758725333238tmp surefire_06534283884049913949tmp"
  [ERROR] Error occurred in starting fork, check output in log
  [ERROR] Process Exit Code: 1
  [ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
  [ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
  [ERROR]         at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
  [ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
  [ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
  [ERROR]         at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
  [ERROR]         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
  [ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
  [ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
  [ERROR]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
  [ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  [ERROR]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  [ERROR]         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
  [ERROR]         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  [ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
  [ERROR]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
  [ERROR]         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
  [ERROR]         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
  [ERROR]         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  [ERROR]         at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
  [ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [ERROR]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  [ERROR]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  [ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  [ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  [ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  [ERROR]         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  [ERROR]
  [ERROR] -&gt; [Help 1]
  </code></pre>