Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-308

Compiler failure but no compiler message on the console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • None
    • None

    Description

      Using:

      Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T13:39:06-06:00)
      Maven home: C:\Java\apache-maven-3.5.0\bin\..
      Java version: 9, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk-9
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

      java version "9"
      Java(TM) SE Runtime Environment (build 9+181)
      Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

      Steps to reproduce:

      Will give you:

      [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ log4j-core ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 530 source files to C:\temp\rc\apache-log4j-2.9.1-src\log4j-core\target\test-classes
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Apache Log4j 2 ..................................... SUCCESS [  3.890 s]
      [INFO] Apache Log4j API Java 9 support .................... SUCCESS [  8.330 s]
      [INFO] Apache Log4j API ................................... SUCCESS [ 37.451 s]
      [INFO] Apache Log4j Core .................................. FAILURE [ 55.364 s]
      [INFO] Apache Log4j Core Integration Tests ................ SKIPPED
      [INFO] Apache Log4j 1.x Compatibility API ................. SKIPPED
      [INFO] Apache Log4j SLF4J Binding ......................... SKIPPED
      [INFO] Apache Log4j to SLF4J Adapter ...................... SKIPPED
      [INFO] Apache Log4j Commons Logging Bridge ................ SKIPPED
      [INFO] Apache Log4j Flume Bridge .......................... SKIPPED
      [INFO] Apache Log4j Web ................................... SKIPPED
      [INFO] Apache Log4j Tag Library ........................... SKIPPED
      [INFO] Apache Log4j JMX GUI ............................... SKIPPED
      [INFO] Apache Log4j Samples ............................... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Common ............... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Remote ............... SKIPPED
      [INFO] Apache Log4j Samples: Flume - Embedded ............. SKIPPED
      [INFO] Apache Log4j Samples: Configuration ................ SKIPPED
      [INFO] Apache Log4j Samples: LoggerProperties ............. SKIPPED
      [INFO] Apache Log4j OSGi .................................. SKIPPED
      [INFO] Apache Log4j BOM ................................... SKIPPED
      [INFO] Apache Log4j NoSQL ................................. SKIPPED
      [INFO] Apache Log4J Performance Tests ..................... SKIPPED
      [INFO] Apache Log4j Streaming Interface ................... SKIPPED
      [INFO] Apache Log4j JUL Adapter ........................... SKIPPED
      [INFO] Apache Log4j Liquibase Binding ..................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:47 min
      [INFO] Finished at: 2017-09-18T10:00:51-06:00
      [INFO] Final Memory: 41M/137M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project log4j-core: Compilation failure -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project log4j-core: Compilation failure
              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:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/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)
      Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
              at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1165)
              at org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:176)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              ... 20 more
      [ERROR]
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      

      But what is the compile error?

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              ggregory Gary D. Gregory
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: