Bug#893085: apache-log4j2 FTBFS with openjdk-9
Adrian Bunk
bunk at debian.org
Fri Mar 16 10:33:18 UTC 2018
Source: apache-log4j2
Version: 2.8.2-2
Severity: serious
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/apache-log4j2.html
...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0:jar (default-cli) on project log4j-core: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/TypeConverters.java:35: error: package javax.xml.bind is not visible
[ERROR] import javax.xml.bind.DatatypeConverter;
[ERROR] ^
[ERROR] (package javax.xml.bind is declared in module java.xml.bind, which is not in the module graph)
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaProducerFactory.java:22: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.Producer;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaProducerFactory.java:37: error: cannot find symbol
[ERROR] Producer<byte[], byte[]> newKafkaProducer(Properties config);
[ERROR] ^
[ERROR] symbol: class Producer
[ERROR] location: interface KafkaProducerFactory
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java:27: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.Callback;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java:28: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.Producer;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java:29: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.ProducerRecord;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java:30: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.RecordMetadata;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/KafkaManager.java:46: error: cannot find symbol
[ERROR] private Producer<byte[], byte[]> producer;
[ERROR] ^
[ERROR] symbol: class Producer
[ERROR] location: class KafkaManager
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/DefaultKafkaProducerFactory.java:22: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.KafkaProducer;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/DefaultKafkaProducerFactory.java:23: error: package org.apache.kafka.clients.producer does not exist
[ERROR] import org.apache.kafka.clients.producer.Producer;
[ERROR] ^
[ERROR] /build/1st/apache-log4j2-2.8.2/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka/DefaultKafkaProducerFactory.java:39: error: cannot find symbol
[ERROR] public Producer<byte[], byte[]> newKafkaProducer(final Properties config) {
[ERROR] ^
[ERROR] symbol: class Producer
[ERROR] location: class DefaultKafkaProducerFactory
[ERROR]
[ERROR] Command line was: /usr/lib/jvm/java-9-openjdk-amd64/bin/javadoc @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/build/1st/apache-log4j2-2.8.2/log4j-core/target/apidocs' dir.
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :log4j-core
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/1st/apache-log4j2-2.8.2 -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/build/1st/apache-log4j2-2.8.2/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/build/1st/apache-log4j2-2.8.2/debian -Dmaven.repo.local=/build/1st/apache-log4j2-2.8.2/debian/maven-repo --batch-mode package javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:4: build] Error 2
More information about the pkg-java-maintainers
mailing list