[
https://issues.apache.org/jira/browse/LOG4J2-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17463770#comment-17463770
]
slava edited comment on LOG4J2-3271 at 12/22/21, 12:20 PM:
-----------------------------------------------------------
[~ckkok]
Yes, after updating the disruptor, the build lasted. But it fell due to the
fact that Java11 is needed, but why? Version 2.17 for 8. I'm building java8
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project log4j-jpl: Compilation failure
[ERROR] javac: invalid flag: --release
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[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-jpl
was (Author: JIRAUSER282418):
[~ckkok]
Yes, after updating the disruptor, the build lasted. But it fell due to the
fact that Java11 is needed, but why? Version 2.17 for 8. I'm building java8
''' java
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile)
on project log4j-jpl: Compilation failure
[ERROR] javac: invalid flag: --release
[ERROR] Usage: javac <options> <source files>
[ERROR] use -help for a list of possible options
[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-jpl
'''
> When compiling 2.17.0 java8 error
> ---------------------------------
>
> Key: LOG4J2-3271
> URL: https://issues.apache.org/jira/browse/LOG4J2-3271
> Project: Log4j 2
> Issue Type: Bug
> Components: Build
> Affects Versions: 2.17.0
> Reporter: slava
> Priority: Major
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> (default-compile) on project log4j-core: Compilation failure
> [ERROR]
> /builddir/build/BUILD/apache-log4j-2.17.0-src/log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorUtil.java:[76,23]
> error: no suitable constructor found for SleepingWaitStrategy(int,long)
> [ERROR] constructor SleepingWaitStrategy.SleepingWaitStrategy() is not
> applicable
> [ERROR] (actual and formal argument lists differ in length)
> [ERROR] constructor SleepingWaitStrategy.SleepingWaitStrategy(int) is not
> applicable
> [ERROR] (actual and formal argument lists differ in length)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)