maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MCOMPILER-308) Compiler failure but no compiler message on the console
Date Tue, 09 Jul 2019 13:09:00 GMT

    [ https://issues.apache.org/jira/browse/MCOMPILER-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881213#comment-16881213
] 

Ralph Goers commented on MCOMPILER-308:
---------------------------------------

Log4j is experiencing this again, however it is now happening in log4j-api-java9, which is
the very first module to be compiled. It doesn't have dependencies on any MR jars. What's
more, this is only happening in the ASF Jenkins, not on my MacBook Pro. Once again, we are
not getting any useful information to be able to determine what the problem is despite having
-X set in the Maven command. We would appreciate any help in figuring out what the problem
is.
{code:java}
[INFO] Changes detected - recompiling the module!
[DEBUG] Classpath:
[DEBUG]  /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/classes
[DEBUG] Source roots:
[DEBUG]  /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java
[DEBUG]  /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/generated-sources/annotations
[DEBUG] Excutable: 
[DEBUG]  /home/jenkins/tools/java/latest1.9/bin/javac
[DEBUG] Command line options:
[DEBUG] -d /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/classes
-classpath /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/classes:
-sourcepath /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java:/home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/target/generated-sources/annotations: /home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/simple/Dummy.java /home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/status/Dummy.java /home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/src/main/java/module-info.java /home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/message/Dummy.java /home/jenkins/jenkins-slave/workspace/Log4j
2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/log4j/util/PropertySource.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/util/ProcessIdUtil.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/spi/Provider.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/util/internal/DefaultObjectInputFilter.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/message/ThreadDumpMessage.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/Dummy.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/util/PrivateSecurityManagerStackTraceUtil.java
/home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/src/main/java/org/apache/logging/log4j/util/StackLocator.java
-s /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/generated-sources/annotations
-proc:none -g -deprecation --release 9 -encoding UTF-8 -Xlint -Xmaxwarns 10000
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 12 source files to /home/jenkins/jenkins-slave/workspace/Log4j 2 3.x/log4j-api-java9/target/classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Log4j 2 3.0.0-SNAPSHOT:
[INFO] 
[INFO] Apache Log4j 2 ..................................... SUCCESS [ 23.528 s]
[INFO] Apache Log4j API Java 9 support .................... FAILURE [  9.399 s]
[INFO] Apache Log4j API ................................... SKIPPED
[INFO] Apache Log4j Plugins Module support ................ SKIPPED
[INFO] Apache Log4j Plugins ............................... SKIPPED
[INFO] Apache Log4j Core Java 9 support ................... SKIPPED
[INFO] Apache Log4j Core .................................. SKIPPED
[INFO] Apache Log4j Layout for Jackson .................... SKIPPED
[INFO] Apache Log4j Layout for Jackson JSON ............... SKIPPED
[INFO] Apache Log4j Layout for Jackson XML ................ SKIPPED
[INFO] Apache Log4j Layout for Jackson YAML ............... SKIPPED
[INFO] Apache Log4j Core Integration Tests ................ SKIPPED
[INFO] Apache Log4j 1.x Compatibility API ................. SKIPPED
[INFO] Apache Log4j to SLF4J Adapter ...................... SKIPPED
[INFO] Apache Log4j SLF4J Binding ......................... SKIPPED
[INFO] Apache Log4j SLF4J 1.8+ Binding .................... SKIPPED
[INFO] Apache Log4j Commons Logging Bridge ................ SKIPPED
[INFO] Apache Log4j CSV ................................... 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 BOM ................................... SKIPPED
[INFO] Apache Log4j JDBC .................................. SKIPPED
[INFO] Apache Log4j JDBC DBCP 2 ........................... SKIPPED
[INFO] Apache Log4j JPA ................................... SKIPPED
[INFO] Apache Log4j JeroMQ ................................ SKIPPED
[INFO] Apache Log4j JMS ................................... SKIPPED
[INFO] Apache Log4j Kafka ................................. SKIPPED
[INFO] Apache Log4j CouchDB ............................... SKIPPED
[INFO] Apache Log4j MongoDB 2 ............................. SKIPPED
[INFO] Apache Log4j MongoDB 3 ............................. SKIPPED
[INFO] Apache Log4j Cassandra ............................. 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] Apache Log4j App Server Support .................... SKIPPED
[INFO] Apache Log4j SMTP .................................. SKIPPED
[INFO] Apache Log4j OSGi .................................. SKIPPED
[INFO] Apache Log4j Docker Library ........................ SKIPPED
[INFO] Apache Log4j Spring Cloud Config Support ........... SKIPPED
[INFO] Apache Log4j Spring Cloud Config Client Support .... SKIPPED
[INFO] Log4j Sample Configuration Service ................. SKIPPED
[INFO] Apache Log4j Spring Cloud Config Samples ........... SKIPPED
[INFO] Spring Cloud Config Sample Application ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:18 min
[INFO] Finished at: 2019-07-09T05:52:21Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
(default-compile) on project log4j-api-java9: Compilation failure -> [Help 1]{code}

> Compiler failure but no compiler message on the console
> -------------------------------------------------------
>
>                 Key: MCOMPILER-308
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-308
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.7.0
>            Reporter: Gary Gregory
>            Priority: Major
>
> 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:
> * git clone https://git-wip-us.apache.org/repos/asf/logging-log4j2.git
> * git checkout tags/log4j-2.9.1-rc1
> * mvn -e verify
> Will give you:
> {noformat}
> [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.
> {noformat}
> But what is the compile error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message