[ 
https://issues.apache.org/jira/browse/HBASE-24242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091518#comment-17091518
 ] 

Peter Somogyi commented on HBASE-24242:
---------------------------------------

The gson upgrade to 2.8.6 introduced JDK7 incompatibility. We need to keep JDK7 
support for branch-1. This version added "Java 9 module-info support" which 
generates enforcer failure.

Should we roll back this upgrade?
{noformat}
$ mvn install assembly:single -DskipTests -Dcheckstyle.skip=true -Prelease
...
[INFO] -----------< org.apache.hbase.thirdparty:hbase-shaded-gson >------------
[INFO] Building Apache HBase Relocated (Shaded) GSON Libs 3.2.1-SNAPSHOT  [4/5]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
hbase-shaded-gson ---
[INFO] Restricted to JDK 1.7 yet com.google.code.gson:gson:jar:2.8.6:compile 
contains module-info.class targeted to JDK 1.9
[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.7 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: com.google.code.gson:gson:jar:2.8.6
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache HBase Third-Party Libs 3.2.1-SNAPSHOT:
[INFO]
[INFO] Apache HBase Third-Party Libs ...................... SUCCESS [  2.269 s]
[INFO] Apache HBase Patched and Relocated (Shaded) Protobuf SUCCESS [  8.635 s]
[INFO] Apache HBase Relocated (Shaded) Netty Libs ......... SUCCESS [  4.475 s]
[INFO] Apache HBase Relocated (Shaded) GSON Libs .......... FAILURE [  0.020 s]
[INFO] Apache HBase Relocated (Shaded) Third-party Miscellaneous Libs SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.594 s
[INFO] Finished at: 2020-04-24T14:23:44+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce 
(enforce-maven-version) on project hbase-shaded-gson: Some Enforcer rules have 
failed. Look above for specific messages explaining why the rule failed. -> 
[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-gson
{noformat}

> Release hbase-thirdparty 3.3.0
> ------------------------------
>
>                 Key: HBASE-24242
>                 URL: https://issues.apache.org/jira/browse/HBASE-24242
>             Project: HBase
>          Issue Type: Umbrella
>            Reporter: Duo Zhang
>            Assignee: Peter Somogyi
>            Priority: Major
>




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

Reply via email to