[
https://issues.apache.org/jira/browse/GUACAMOLE-1317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Jumper reassigned GUACAMOLE-1317:
--------------------------------------
Assignee: Mike Jumper
> guacamole-client build fails against newer versions of JDK
> ----------------------------------------------------------
>
> Key: GUACAMOLE-1317
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1317
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-client
> Reporter: Mike Jumper
> Assignee: Mike Jumper
> Priority: Minor
>
> The guacamole-client build currently succeeds against JDK 8 through 11, as
> well as JDK 14, but fails against all others with the following error:
> {code:none}
> [WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
> java.lang.ExceptionInInitializerError
> at
> org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance
> (<generated>)
> at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance
> (FastConstructor.java:40)
> ...
> Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds
> for length 1
> at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>
> (AbstractZipArchiver.java:113)
> at
> org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance
> (<generated>)
> at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance
> (FastConstructor.java:40)
> ...
> [WARNING] Error injecting: org.apache.maven.plugin.source.SourceJarMojo
> java.lang.ExceptionInInitializerError
> at
> org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance
> (<generated>)
> at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance
> (FastConstructor.java:40)
> ...
> Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds
> for length 1
> at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>
> (AbstractZipArchiver.java:113)
> at
> org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance
> (<generated>)
> at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance
> (FastConstructor.java:40)
> ...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for guacamole-client 1.3.0:
> [INFO]
> [INFO] guacamole-client ................................... SUCCESS [ 12.616
> s]
> [INFO] guacamole-common ................................... FAILURE [ 8.298
> s]
> ...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 21.333 s
> [INFO] Finished at: 2021-04-02T03:54:34Z
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-source-plugin:2.4:jar (attach-sources) on
> project guacamole-common: Execution attach-sources of goal
> org.apache.maven.plugins:maven-source-plugin:2.4:jar failed: An API
> incompatibility was encountered while executing
> org.apache.maven.plugins:maven-source-plugin:2.4:jar:
> java.lang.ExceptionInInitializerError: null
> ...
> {code}
> This is due to several of the build plugins being out-of-date. The newer
> versions of the JDK behave differently and cause errors with older versions
> of these plugins. Affected plugins have since been updated to be compatible.
> We should probably go through the various {{pom.xml}} and update any plugins
> to the latest.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)