[
https://issues.apache.org/jira/browse/LOG4J2-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059547#comment-16059547
]
ASF GitHub Bot commented on LOG4J2-1950:
----------------------------------------
GitHub user phymbert opened a pull request:
https://github.com/apache/logging-log4j2/pull/84
[LOG4J2-1950] Fix docker build with jdk9 requirements
Revert docker image base from openjdk:7-alpine to openjdk:7-jdk (debian)
since yet alpine does not include jdk9.
Install jdk9 and specify toolchains file in the mvn build
Signed-off-by: phymbert <[email protected]>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/phymbert/logging-log4j2 LOG4J2-1950
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/84.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #84
----
commit 516e2ab45ec01021098bfef8f55d7748f16c018b
Author: phymbert <[email protected]>
Date: 2017-06-22T15:33:32Z
[LOG4J2-1950] Fix docker build with jdk9 requirements
Signed-off-by: phymbert <[email protected]>
----
> 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
>
> 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)