Source: maven-source-plugin
Severity: important
Tags: ftbfs sid bookworm
User: debian-j...@lists.debian.org
Usertags: default-java17

maven-source-plugin fails to build with OpenJDK 17, the tests fail with the 
following error:


  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running org.apache.maven.plugins.source.SourceJarMojoTest
  SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
  [ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.935 
s <<< FAILURE! - in org.apache.maven.plugins.source.SourceJarMojoTest
  [ERROR] testExcludes(org.apache.maven.plugins.source.SourceJarMojoTest)  Time 
elapsed: 0.635 s  <<< ERROR!
  com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.ExceptionInInitializerError
  Caused by: com.google.inject.internal.cglib.core.$CodeGenerationException: 
java.lang.reflect.InaccessibleObjectException-->Unable to make protected final 
java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  
  [ERROR] testNoSources(org.apache.maven.plugins.source.SourceJarMojoTest)  
Time elapsed: 0.058 s  <<< ERROR!
  com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.ExceptionInInitializerError
  Caused by: com.google.inject.internal.cglib.core.$CodeGenerationException: 
java.lang.reflect.InaccessibleObjectException-->Unable to make protected final 
java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  
  [ERROR] 
testIncludeMavenDescriptorWhenExplicitlyConfigured(org.apache.maven.plugins.source.SourceJarMojoTest)
  Time elapsed: 0.062 s  <<< ERROR!
  com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.ExceptionInInitializerError
  Caused by: com.google.inject.internal.cglib.core.$CodeGenerationException: 
java.lang.reflect.InaccessibleObjectException-->Unable to make protected final 
java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  
  [ERROR] testIncludePom(org.apache.maven.plugins.source.SourceJarMojoTest)  
Time elapsed: 0.05 s  <<< ERROR!
  com.google.common.util.concurrent.UncheckedExecutionException: 
java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.IllegalStateException: Unable to load cache item
  Caused by: java.lang.ExceptionInInitializerError
  Caused by: com.google.inject.internal.cglib.core.$CodeGenerationException: 
java.lang.reflect.InaccessibleObjectException-->Unable to make protected final 
java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @2ee4f460

Reply via email to