Bug#869279: hdrhistogram FTBFS: java.lang.NoSuchMethodError: org.apache.maven.archiver.MavenArchiver.getManifest

2017-07-22 Thread Emmanuel Bourg
Hi Adrian,

Thank you for the report. No need to report more "NoSuchMethodError"
related to MavenArchiver, this is a toolchain issue with
maven-bundle-plugin which affects all its rdeps (~160 packages). I'll
look into this shortly.

Emmanuel Bourg



Bug#869279: hdrhistogram FTBFS: java.lang.NoSuchMethodError: org.apache.maven.archiver.MavenArchiver.getManifest

2017-07-22 Thread Adrian Bunk
Source: hdrhistogram
Version: 2.1.9-1
Severity: serious
Tags: buster sid

Some recent change in unstable makes hdrhistogram FTBFS:

https://tests.reproducible-builds.org/debian/history/hdrhistogram.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/hdrhistogram.html

...
   dh_auto_build -O--buildsystem=maven
/usr/lib/jvm/default-java/bin/java -noverify -cp 
/usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar
 -Dmaven.home=/usr/share/maven 
-Dmaven.multiModuleProjectDirectory=/build/1st/hdrhistogram-2.1.9 
-Dclassworlds.conf=/etc/maven/m2-debian.conf 
-Dproperties.file.manual=/build/1st/hdrhistogram-2.1.9/debian/maven.properties 
org.codehaus.plexus.classworlds.launcher.Launcher 
-s/etc/maven/settings-debian.xml 
-Ddebian.dir=/build/1st/hdrhistogram-2.1.9/debian 
-Dmaven.repo.local=/build/1st/hdrhistogram-2.1.9/debian/maven-repo package 
-DskipTests -Dnotimestamp=true -Dlocale=en_US
[INFO] Scanning for projects...
[INFO] 
[INFO] 

[INFO] Building HdrHistogram 2.1.9
[INFO] 

[INFO] 
[INFO] --- replacer:1.5.3:replace (default) @ 
HdrHistogram ---
[INFO] Replacement run on 1 file.
[INFO] 
[INFO] --- maven-resources-plugin:3.0.0:resources 
(default-resources) @ HdrHistogram ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/build/1st/hdrhistogram-2.1.9/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile 
(default-compile) @ HdrHistogram ---
[WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.x 
is invalid, transitive dependencies (if any) will not be available, enable 
debug logging for more details
[WARNING] The POM for 
org.codehaus.plexus:plexus-compiler-javac:jar:2.x is invalid, transitive 
dependencies (if any) will not be available, enable debug logging for more 
details
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 36 source files to 
/build/1st/hdrhistogram-2.1.9/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.0:testResources 
(default-testResources) @ HdrHistogram ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile 
(default-testCompile) @ HdrHistogram ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to 
/build/1st/hdrhistogram-2.1.9/target/test-classes
[INFO] 
/build/1st/hdrhistogram-2.1.9/src/test/java/org/HdrHistogram/HistogramLogReaderWriterTest.java:
 
/build/1st/hdrhistogram-2.1.9/src/test/java/org/HdrHistogram/HistogramLogReaderWriterTest.java
 uses or overrides a deprecated API.
[INFO] 
/build/1st/hdrhistogram-2.1.9/src/test/java/org/HdrHistogram/HistogramLogReaderWriterTest.java:
 Recompile with -Xlint:deprecation for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test 
(default-test) @ HdrHistogram ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.4:bundle 
(default-bundle) @ HdrHistogram ---
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 4.852 s
[INFO] Finished at: 2018-08-24T04:32:36-12:00
[INFO] Final Memory: 22M/678M
[INFO] 

[ERROR] Failed to execute goal 
org.apache.felix:maven-bundle-plugin:2.5.4:bundle 
(default-bundle) on project HdrHistogram: Execution 
default-bundle of goal org.apache.felix:maven-bundle-plugin:2.5.4:bundle 
failed: An API incompatibility was encountered while executing 
org.apache.felix:maven-bundle-plugin:2.5.4:bundle: java.lang.NoSuchMethodError: 
org.apache.maven.archiver.MavenArchiver.getManifest(Lorg/apache/maven/project/MavenProject;Lorg/apache/maven/archiver/MavenArchiveConfiguration;)Lorg/codehaus/plexus/archiver/jar/Manifest;
[ERROR] 
-
[ERROR] realm =
extension>org.apache.felix:maven-bundle-plugin:2.5.4