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

Vitalii Diravka commented on DRILL-6900:
----------------------------------------

After upgrading {{maven-shade-plugin}} and {{maven-assembly-plugin}} to the 
latest version the issue can be obtained on the earlier {{release:prepare}} 
stage.

After numerous builds I found that root cause of the issue is the newer version 
of {{maven-javadoc-plugin}} in the {{apache-21.pom}}.
 It appears that {{mvn release:prepare}} for Drill with [{{apache-21.pom}} and 
{{maven-javadoc-plugin:3.0.1}}|https://github.com/apache/maven-apache-parent/blob/apache-21/pom.xml#L203]
 fails, but with [{{apache-18.pom}} and 
{{maven-javadoc-plugin:2.10.3}}|https://github.com/apache/maven-apache-parent/blob/apache-18/pom.xml#L190]
 works fine. The main complexity to find the solution was in the unhelpful 
error message and moreover from other plugin - {{maven-compiler-plugin}}.

The solution is to use {{apache-21.pom}} and override the version for 
{{maven-javadoc-plugin}}. 
 I will create PR soon. The version for {{maven-javadoc-plugin}} can be updated 
along with DRILL-4547, I will create a sub-task there.

> maven-release-plugin failure on the release:perform stage
> ---------------------------------------------------------
>
>                 Key: DRILL-6900
>                 URL: https://issues.apache.org/jira/browse/DRILL-6900
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Tools, Build & Test
>    Affects Versions: 1.14.0
>            Reporter: Vitalii Diravka
>            Assignee: Vitalii Diravka
>            Priority: Blocker
>             Fix For: 1.15.0
>
>
> {{release:perform}} stage fails on current master branch. It blocks to 
> prepare the release candidate:
> {code:java}
> mvn release:perform 
> -DconnectionUrl=scm:git:g...@github.com:vdiravka/drill.git -DskipTests 
> -Darguments="-Dgpg.passphrase=${GPG_PASSPHRASE} -DskipTests=true 
> -DconnectionUrl=scm:git:g...@github.com:vdiravka/drill.git"
> {code}
> {code:java}
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/expr/fn/impl/hive/AbstractDrillPrimitiveObjectInspector.java:[26,47]
>  error: cannot find symbol
> [INFO]   symbol:   class PrimitiveTypeInfo
> [INFO]   location: class AbstractDrillPrimitiveObjectInspector
> [INFO] [INFO] 100 errors 
> [INFO] [INFO] -------------------------------------------------------------
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Reactor Summary for Apache Drill Root POM 1.15.0:
> [INFO] [INFO] 
> [INFO] [INFO] Apache Drill Root POM .............................. SUCCESS [ 
> 37.579 s]
> [INFO] [INFO] tools/Parent Pom ................................... SUCCESS [  
> 6.360 s]
> [INFO] [INFO] tools/freemarker codegen tooling ................... SUCCESS [ 
> 26.726 s]
> [INFO] [INFO] Drill Protocol ..................................... SUCCESS [ 
> 41.030 s]
> [INFO] [INFO] Common (Logical Plan, Base expressions) ............ SUCCESS [ 
> 27.754 s]
> [INFO] [INFO] Logical Plan, Base expressions ..................... SUCCESS [ 
> 29.154 s]
> [INFO] [INFO] exec/Parent Pom .................................... SUCCESS [  
> 6.252 s]
> [INFO] [INFO] exec/memory/Parent Pom ............................. SUCCESS [  
> 6.074 s]
> [INFO] [INFO] exec/memory/base ................................... SUCCESS [ 
> 24.909 s]
> [INFO] [INFO] exec/rpc ........................................... SUCCESS [ 
> 24.191 s]
> [INFO] [INFO] exec/Vectors ....................................... SUCCESS 
> [01:50 min]
> [INFO] [INFO] contrib/Parent Pom ................................. SUCCESS [  
> 6.173 s]
> [INFO] [INFO] contrib/data/Parent Pom ............................ SUCCESS [  
> 6.058 s]
> [INFO] [INFO] contrib/data/tpch-sample-data ...................... SUCCESS [ 
> 19.704 s]
> [INFO] [INFO] exec/Java Execution Engine ......................... SUCCESS 
> [01:57 min]
> [INFO] [INFO] exec/JDBC Driver using dependencies ................ SUCCESS [ 
> 32.619 s]
> [INFO] [INFO] JDBC JAR with all dependencies ..................... FAILURE 
> [01:16 min]
> [INFO] [INFO] Drill-on-YARN ...................................... SKIPPED
> [INFO] [INFO] contrib/kudu-storage-plugin ........................ SKIPPED
> [INFO] [INFO] contrib/opentsdb-storage-plugin .................... SKIPPED
> [INFO] [INFO] contrib/mongo-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/hbase-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/jdbc-storage-plugin ........................ SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/Parent Pom ............. SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/hive-exec-shaded ....... SKIPPED
> [INFO] [INFO] contrib/mapr-format-plugin ......................... SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/core ................... SKIPPED
> [INFO] [INFO] contrib/kafka-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/drill-udfs ................................. SKIPPED
> [INFO] [INFO] Packaging and Distribution Assembly ................ SKIPPED
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time:  09:58 min
> [INFO] [INFO] Finished at: 2018-12-12T19:18:08+02:00
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile 
> (default-compile) on project drill-storage-hive-core: Compilation failure: 
> Compilation failure: 
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveMetadataProvider.java:[32,36]
>  error: package org.apache.hadoop.hive.common does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveMetadataProvider.java:[33,34]
>  error: package org.apache.hadoop.hive.conf does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveScan.java:[43,34]
>  error: package org.apache.hadoop.hive.conf does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/DrillHiveMetaStoreClient.java:[40,62]
>  error: package org.apache.hadoop.hive.ql.security.authorization.plugin does 
> not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/DrillHiveMetaStoreClient.java:[41,35]
>  error: package org.apache.hadoop.hive.shims does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveScan.java:[139,9]
>  error: cannot find symbol
> ...
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/expr/fn/impl/hive/AbstractDrillPrimitiveObjectInspector.java:[26,47]
>  error: cannot find symbol
> [INFO]   symbol:   class PrimitiveTypeInfo
> [INFO]   location: class AbstractDrillPrimitiveObjectInspector
> [INFO] [INFO] 100 errors 
> [INFO] [INFO] -------------------------------------------------------------
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Reactor Summary for Apache Drill Root POM 1.15.0:
> [INFO] [INFO] 
> [INFO] [INFO] Apache Drill Root POM .............................. SUCCESS [ 
> 37.579 s]
> [INFO] [INFO] tools/Parent Pom ................................... SUCCESS [  
> 6.360 s]
> [INFO] [INFO] tools/freemarker codegen tooling ................... SUCCESS [ 
> 26.726 s]
> [INFO] [INFO] Drill Protocol ..................................... SUCCESS [ 
> 41.030 s]
> [INFO] [INFO] Common (Logical Plan, Base expressions) ............ SUCCESS [ 
> 27.754 s]
> [INFO] [INFO] Logical Plan, Base expressions ..................... SUCCESS [ 
> 29.154 s]
> [INFO] [INFO] exec/Parent Pom .................................... SUCCESS [  
> 6.252 s]
> [INFO] [INFO] exec/memory/Parent Pom ............................. SUCCESS [  
> 6.074 s]
> [INFO] [INFO] exec/memory/base ................................... SUCCESS [ 
> 24.909 s]
> [INFO] [INFO] exec/rpc ........................................... SUCCESS [ 
> 24.191 s]
> [INFO] [INFO] exec/Vectors ....................................... SUCCESS 
> [01:50 min]
> [INFO] [INFO] contrib/Parent Pom ................................. SUCCESS [  
> 6.173 s]
> [INFO] [INFO] contrib/data/Parent Pom ............................ SUCCESS [  
> 6.058 s]
> [INFO] [INFO] contrib/data/tpch-sample-data ...................... SUCCESS [ 
> 19.704 s]
> [INFO] [INFO] exec/Java Execution Engine ......................... SUCCESS 
> [01:57 min]
> [INFO] [INFO] exec/JDBC Driver using dependencies ................ SUCCESS [ 
> 32.619 s]
> [INFO] [INFO] JDBC JAR with all dependencies ..................... FAILURE 
> [01:16 min]
> [INFO] [INFO] Drill-on-YARN ...................................... SKIPPED
> [INFO] [INFO] contrib/kudu-storage-plugin ........................ SKIPPED
> [INFO] [INFO] contrib/opentsdb-storage-plugin .................... SKIPPED
> [INFO] [INFO] contrib/mongo-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/hbase-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/jdbc-storage-plugin ........................ SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/Parent Pom ............. SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/hive-exec-shaded ....... SKIPPED
> [INFO] [INFO] contrib/mapr-format-plugin ......................... SKIPPED
> [INFO] [INFO] contrib/hive-storage-plugin/core ................... SKIPPED
> [INFO] [INFO] contrib/kafka-storage-plugin ....................... SKIPPED
> [INFO] [INFO] contrib/drill-udfs ................................. SKIPPED
> [INFO] [INFO] Packaging and Distribution Assembly ................ SKIPPED
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time:  09:58 min
> [INFO] [INFO] Finished at: 2018-12-12T19:18:08+02:00
> [INFO] [INFO] 
> ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile 
> (default-compile) on project drill-storage-hive-core: Compilation failure: 
> Compilation failure: 
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveMetadataProvider.java:[32,36]
>  error: package org.apache.hadoop.hive.common does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveMetadataProvider.java:[33,34]
>  error: package org.apache.hadoop.hive.conf does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveScan.java:[43,34]
>  error: package org.apache.hadoop.hive.conf does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/DrillHiveMetaStoreClient.java:[40,62]
>  error: package org.apache.hadoop.hive.ql.security.authorization.plugin does 
> not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/DrillHiveMetaStoreClient.java:[41,35]
>  error: package org.apache.hadoop.hive.shims does not exist
> [INFO] [ERROR] 
> /home/vitalii/src/release/drill/target/checkout/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveScan.java:[139,9]
>  error: cannot find symbol
> {code}
> It fails for [Manual Release 
> process|https://github.com/parthchandra/drill/wiki/Drill-Release-Process#manual-release-process].
>  [Automated 
> release|https://github.com/parthchandra/drill/wiki/Drill-Release-Process#automated-release]
>  just breaks on "Performing the release to ${MY_REPO}" stage.
> It performs successfully with {{apache-18.pom}} version (after reverting 
> DRILL-6751).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to