You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Nihal Jain (Jira)" <ji...@apache.org> on 2025/07/10 15:52:00 UTC

[jira] [Resolved] (HBASE-29354) Jetty12 dependencies compiled with JDK17 violate hbase-thirdparty bytecode restrictions

     [ https://issues.apache.org/jira/browse/HBASE-29354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nihal Jain resolved HBASE-29354.
--------------------------------
    Resolution: Duplicate

>  Jetty12 dependencies compiled with JDK17 violate hbase-thirdparty bytecode restrictions
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-29354
>                 URL: https://issues.apache.org/jira/browse/HBASE-29354
>             Project: HBase
>          Issue Type: Sub-task
>          Components: thirdparty
>            Reporter: Nihal Jain
>            Assignee: Nihal Jain
>            Priority: Blocker
>              Labels: pull-request-available
>
> Discovered during dry run for release. Release deploy step fail with below error:
> {code:java}
> [INFO] --- maven-enforcer-plugin:3.4.1:enforce (enforce-maven-version) @ hbase-shaded-jetty-12-plus-core ---
> [INFO] Adding ignore: module-info
> [INFO] Adding ignore: module-info
> [INFO] Adding ignore: **.glassfish.jersey.internal.jsr166.SubmissionPublisher*
> [INFO] Adding ignore: **.glassfish.jersey.internal.jsr166.JerseyFlowSubscriber*
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-server:jar:12.0.21:compile contains org/eclipse/jetty/server/AbstractConnectionFactory.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-security:jar:12.0.21:compile contains org/eclipse/jetty/security/AbstractLoginService.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-util-ajax:jar:12.0.21:compile contains org/eclipse/jetty/util/ajax/AsyncJSON$Context.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-http:jar:12.0.21:compile contains org/eclipse/jetty/http/BadMessageException.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-io:jar:12.0.21:compile contains org/eclipse/jetty/io/AbstractConnection$1.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-jmx:jar:12.0.21:compile contains org/eclipse/jetty/jmx/ConnectorServer$JMXRMIServerSocketFactory.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-xml:jar:12.0.21:compile contains org/eclipse/jetty/xml/BaseClassCatalog$CatalogReader.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-session:jar:12.0.21:compile contains org/eclipse/jetty/session/AbstractSessionCache.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-ee:jar:12.0.21:compile contains org/eclipse/jetty/ee/WebAppClassLoading.class targeted to JDK 17
> [INFO] Restricted to JDK 8 yet org.eclipse.jetty:jetty-util:jar:12.0.21:compile contains org/eclipse/jetty/util/AbstractTrie.class targeted to JDK 17
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary for Apache HBase Third-Party Libs 4.1.11-SNAPSHOT:
> [INFO]
> [INFO] Apache HBase Third-Party Libs ...................... SUCCESS [  8.185 s]
> [INFO] Apache HBase Patched and Relocated (Shaded) Protobuf SUCCESS [ 18.726 s]
> [INFO] Apache HBase Relocated (Shaded) Netty Libs ......... SUCCESS [ 15.522 s]
> [INFO] Apache HBase Relocated (Shaded) netty-tcnative Libs  SUCCESS [  8.876 s]
> [INFO] Apache HBase Relocated (Shaded) GSON Libs .......... SUCCESS [  2.582 s]
> [INFO] Apache HBase Relocated (Shaded) Third-party Miscellaneous Libs SUCCESS [ 15.995 s]
> [INFO] Apache HBase Relocated (Shaded) Jetty Libs ......... SUCCESS [ 12.468 s]
> [INFO] Apache HBase Relocated (Shaded) Jetty 12+ Libs: Core FAILURE [  0.163 s]
> [INFO] Apache HBase Relocated (Shaded) Jetty 12+ Libs: EE8  SKIPPED
> [INFO] Apache HBase Relocated (Shaded) Jersey Libs ........ SKIPPED
> [INFO] Apache HBase Relocated (Shaded) jackson-jaxrs-json-provider SKIPPED
> [INFO] Apache HBase Drop-in noop HTrace replacement ....... SKIPPED
> [INFO] Apache HBase Unsafe Wrapper ........................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  01:23 min
> [INFO] Finished at: 2025-05-23T21:32:04Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce (enforce-maven-version) on project hbase-shaded-jetty-12-plus-core:
> [ERROR] Rule 1: org.codehaus.mojo.extraenforcer.dependencies.EnforceBytecodeVersion failed with message:
> [ERROR] HBase has unsupported dependencies.
> [ERROR]   HBase requires that all dependencies be compiled with version 1.8 or earlier
> [ERROR]   of the JDK to properly build from source.  You appear to be using a newer dependency. You can use
> [ERROR]   either "mvn -version" or "mvn enforcer:display-info" to verify what version is active.
> [ERROR]   Non-release builds can temporarily build with a newer JDK version by setting the
> [ERROR]   'compileSource' property (eg. mvn -DcompileSource=1.8 clean package).
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-server:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-security:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-util-ajax:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-http:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-io:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-jmx:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-xml:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-session:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-ee:jar:12.0.21
> [ERROR] Found Banned Dependency: org.eclipse.jetty:jetty-util:jar:12.0.21
> [ERROR] Use 'mvn dependency:tree' to locate the source of the banned dependencies.
> [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 <args> -rf :hbase-shaded-jetty-12-plus-core
> {code}
> It seems hbase-thirdparty enforce BytecodeVersion maxJdkVersion as JDK 8, this will be a problem as Jetty12 is compiled with JDK17
> CC: [~apurtell], [~zhangduo], [~stoty], [~ndimiduk]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)