You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Pierrick HYMBERT (JIRA)" <ji...@apache.org> on 2017/06/26 17:36:00 UTC

[jira] [Closed] (LOG4J2-1950) Docker build broken with log4j-api-java9

     [ https://issues.apache.org/jira/browse/LOG4J2-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierrick HYMBERT closed LOG4J2-1950.
------------------------------------

OK, building. Thanks

> Docker build broken with log4j-api-java9
> ----------------------------------------
>
>                 Key: LOG4J2-1950
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1950
>             Project: Log4j 2
>          Issue Type: Bug
>         Environment: Docker
>            Reporter: Pierrick HYMBERT
>            Priority: Trivial
>             Fix For: 2.9
>
>
> Since introduction of jdk9 requirement in the build, docker image cannot be built.
> It fails with:
> {code}
> [INFO] --- maven-toolchains-plugin:1.1:toolchain (default) @ log4j-api-java9 ---
> [INFO] Required toolchain: jdk [ version='9' ]
> [ERROR] No toolchain found for type jdk
> [ERROR] Cannot find matching toolchain definitions for the following toolchain types:
> jdk [ version='9' ]
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Log4j 2 ..................................... SUCCESS [05:27 min]
> [INFO] Apache Log4j API Java 9 support .................... FAILURE [ 25.103 s]
> [INFO] Apache Log4j API ................................... SKIPPED
> [INFO] Apache Log4j Core .................................. SKIPPED
> [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 Scala 2.11 wrapper for Log4j API ...... SKIPPED
> [INFO] Apache Log4j Samples: Scala API .................... 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] Apache Log4j Scala 2.10 wrapper for Log4j API ...... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 08:47 min
> [INFO] Finished at: 2017-06-22T15:27:35+00:00
> [INFO] Final Memory: 33M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain (default) on project log4j-api-java9: Cannot find matching toolchain definitions for the following toolchain types:
> [ERROR] jdk [ version='9' ]
> [ERROR] Please make sure you define the required toolchains in your ~/.m2/toolchains.xml file.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :log4j-api-java9
> The command '/bin/sh -c set -ex     && cd /src     && /opt/apache-maven-3.3.9/bin/mvn verify' returned a non-zero code: 1
> {code}
> I have tried to make it working back, but alpine doesnt support openjdk9 till now, so I suggest to revert to the debian image (FROM openjdk:7-jdk).
> First run is slow, as usual with packages, but then it works smoothly.
> Please check and confirm.
> Have fun with docker :-)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)