You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2020/07/31 01:50:00 UTC

[jira] [Resolved] (HBASE-24798) [hbase-thirdparty] Ignore module-info and SubmissionPublisher in enforceBytecodeVersion rule

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

Duo Zhang resolved HBASE-24798.
-------------------------------
    Hadoop Flags: Reviewed
    Release Note: 
Ignore module-info in enforceBytecodeVersion rule as it is for supporting for JDK9+ and will not break JDK8 support.
Ignore SubmissionPublisher in enforceBytecodeVersion rule as it is used by jersey-common for supporting JDK11 and will not break JDK8 support.
Jersey 2.x promises to support JDK8.
      Resolution: Fixed

Merged to master.

Thanks [~busbey] for reviewing.

> [hbase-thirdparty] Ignore module-info and SubmissionPublisher in enforceBytecodeVersion rule
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-24798
>                 URL: https://issues.apache.org/jira/browse/HBASE-24798
>             Project: HBase
>          Issue Type: Bug
>          Components: build, thirdparty
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: thirdparty-3.4.0
>
>
> Got this when releasing thirdparty-3.4.0.
> {noformat}
> 10:46:33 [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ hbase-shaded-jersey ---
> 10:46:33 [INFO] Restricted to JDK 1.8 yet org.glassfish.jersey.core:jersey-common:jar:2.31:compile contains META-INF/versions/11/org/glassfish/jersey/internal/jsr166/SubmissionPublisher$1.class targeted to 55.0
> 10:46:33 [INFO] Restricted to JDK 1.8 yet jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile contains module-info.class targeted to JDK 1.9
> 10:46:33 [WARNING] Rule 1: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message:
> HBase has unsupported dependencies.
>   HBase requires that all dependencies be compiled with version 1.8 or earlier
>   of the JDK to properly build from source.  You appear to be using a newer dependency. You can use
>   either "mvn -version" or "mvn enforcer:display-info" to verify what version is active.
>   Non-release builds can temporarily build with a newer JDK version by setting the
>   'compileSource' property (eg. mvn -DcompileSource=1.8 clean package).
> Found Banned Dependency: org.glassfish.jersey.core:jersey-common:jar:2.31
> Found Banned Dependency: jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6
> Use 'mvn dependency:tree' to locate the source of the banned dependencies.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)