[ https://issues.apache.org/jira/browse/RANGER-4166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
caijialiang updated RANGER-4166: -------------------------------- Attachment: (was: image-2023-04-04-11-05-05-371.png) > JAR entry META-INF/maven/org.apache.ranger/ranger-distro/pom.properties not > found in ranger/ranger/distro/target/ranger-distro-3.0.0-SNAPSHOT.jar > ------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: RANGER-4166 > URL: https://issues.apache.org/jira/browse/RANGER-4166 > Project: Ranger > Issue Type: Bug > Components: Ranger > Affects Versions: 2.3.0, 2.4.0 > Reporter: caijialiang > Assignee: Lei Yao > Priority: Major > Fix For: 3.0.0 > > Attachments: > 0001-RANGER-4166-fix-the-old-version-of-the-assembly-plug.patch, > 0002-RANGER-4166-Ranger2.x-may-build-failed.patch > > Time Spent: 40m > Remaining Estimate: 0h > > Environment: > Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584) > Maven home: /root/apache-maven-3.9.0 > Java version: 1.8.0_332, vendor: Amazon.com Inc., runtime: > /usr/lib/jdks/corretto-1.8.0_332/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "3.10.0-957.el7.x86_64", arch: "amd64", family: > "unix" > > Steps to reproduce: > 1 rm -rf /root/.m2/repository/org/apache/ranger > 2 cd ranger > 3 mvn clean > 4 mvn compile package install -Dmaven.test.skip=true -DskipTests=true > -Dfindbugs.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true > -Dpmd.skip=true -Drat.skip=true -Dspotbugs.skip=true -Dhadoop.version=3.3.4 > -Dhbase.version=2.4.13 -Dhive.version=3.1.3 -Dkafka.version=2.8.1 > -Dsolr.version=8.11.2 -Dzookeeper.version=3.6.4 > 5 see following errors > {code:java} > [INFO] Building jar: > /root/ranger/ranger/target/ranger-3.0.0-SNAPSHOT-schema-registry-plugin.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary for ranger 3.0.0-SNAPSHOT: > [INFO] > [INFO] ranger ............................................. SUCCESS [ 6.574 > s] > [INFO] Jdbc SQL Connector ................................. SUCCESS [ 2.601 > s] > [INFO] Credential Support ................................. SUCCESS [ 4.192 > s] > [INFO] Audit Component .................................... SUCCESS [ 8.994 > s] > [INFO] ranger-plugin-classloader .......................... SUCCESS [ 1.479 > s] > [INFO] Common library for Plugins ......................... SUCCESS [ 12.040 > s] > [INFO] ranger-intg ........................................ SUCCESS [ 6.305 > s] > [INFO] Installer Support Component ........................ SUCCESS [ 1.885 > s] > [INFO] Credential Builder ................................. SUCCESS [ 4.182 > s] > [INFO] Embedded Web Server Invoker ........................ SUCCESS [ 8.269 > s] > [INFO] Ranger HA Common Library ........................... SUCCESS [ 3.950 > s] > [INFO] ranger-metrics ..................................... SUCCESS [ 3.709 > s] > [INFO] Key Management Service ............................. SUCCESS [ 12.733 > s] > [INFO] HBase Security Plugin Shim ......................... SUCCESS [ 7.182 > s] > [INFO] HBase Security Plugin .............................. SUCCESS [ 9.860 > s] > [INFO] Hdfs Security Plugin ............................... SUCCESS [ 7.177 > s] > [INFO] Hive Security Plugin ............................... SUCCESS [ 16.905 > s] > [INFO] Knox Security Plugin Shim .......................... SUCCESS [ 4.524 > s] > [INFO] Knox Security Plugin ............................... SUCCESS [ 9.586 > s] > [INFO] Storm Security Plugin .............................. SUCCESS [ 6.250 > s] > [INFO] YARN Security Plugin ............................... SUCCESS [ 4.867 > s] > [INFO] Ozone Security Plugin .............................. SUCCESS [ 7.262 > s] > [INFO] Ranger Util ........................................ SUCCESS [ 4.802 > s] > [INFO] Unix Authentication Client ......................... SUCCESS [ 2.028 > s] > [INFO] User Group Synchronizer Util ....................... SUCCESS [ 1.318 > s] > [INFO] ranger-authn ....................................... SUCCESS [ 2.910 > s] > [INFO] Security Admin Web Application ..................... SUCCESS [04:59 > min] > [INFO] KAFKA Security Plugin .............................. SUCCESS [ 11.000 > s] > [INFO] SOLR Security Plugin ............................... SUCCESS [ 8.273 > s] > [INFO] NiFi Security Plugin ............................... SUCCESS [ 4.485 > s] > [INFO] NiFi Registry Security Plugin ...................... SUCCESS [ 4.372 > s] > [INFO] Kudu Security Plugin ............................... SUCCESS [ 4.304 > s] > [INFO] Unix User Group Synchronizer ....................... SUCCESS [ 9.030 > s] > [INFO] Ldap Config Check Tool ............................. SUCCESS [ 4.627 > s] > [INFO] Unix Authentication Service ........................ SUCCESS [ 4.239 > s] > [INFO] Unix Native Authenticator .......................... SUCCESS [ 3.941 > s] > [INFO] KMS Security Plugin ................................ SUCCESS [ 9.510 > s] > [INFO] Tag Synchronizer ................................... SUCCESS [ 7.893 > s] > [INFO] Hdfs Security Plugin Shim .......................... SUCCESS [ 4.551 > s] > [INFO] Hive Security Plugin Shim .......................... SUCCESS [ 15.404 > s] > [INFO] YARN Security Plugin Shim .......................... SUCCESS [ 4.405 > s] > [INFO] OZONE Security Plugin Shim ......................... SUCCESS [ 6.358 > s] > [INFO] Storm Security Plugin shim ......................... SUCCESS [ 5.009 > s] > [INFO] KAFKA Security Plugin Shim ......................... SUCCESS [ 3.877 > s] > [INFO] SOLR Security Plugin Shim .......................... SUCCESS [ 6.348 > s] > [INFO] Atlas Security Plugin Shim ......................... SUCCESS [ 5.251 > s] > [INFO] KMS Security Plugin Shim ........................... SUCCESS [ 7.309 > s] > [INFO] ranger-examples .................................... SUCCESS [ 0.110 > s] > [INFO] Ranger Examples - Conditions and ContextEnrichers .. SUCCESS [ 3.852 > s] > [INFO] Ranger Examples - SampleApp ........................ SUCCESS [ 0.986 > s] > [INFO] Ranger Examples - Ranger Plugin for SampleApp ...... SUCCESS [ 3.912 > s] > [INFO] sample-client ...................................... SUCCESS [ 4.616 > s] > [INFO] Apache Ranger Examples Distribution ................ SUCCESS [ 5.147 > s] > [INFO] Ranger Tools ....................................... SUCCESS [ 4.490 > s] > [INFO] Atlas Security Plugin .............................. SUCCESS [ 4.803 > s] > [INFO] SchemaRegistry Security Plugin ..................... SUCCESS [ 8.540 > s] > [INFO] Sqoop Security Plugin .............................. SUCCESS [ 4.143 > s] > [INFO] Sqoop Security Plugin Shim ......................... SUCCESS [ 3.715 > s] > [INFO] Presto Security Plugin ............................. SUCCESS [ 4.593 > s] > [INFO] Presto Security Plugin Shim ........................ SUCCESS [ 4.400 > s] > [INFO] Elasticsearch Security Plugin Shim ................. SUCCESS [ 1.874 > s] > [INFO] Elasticsearch Security Plugin ...................... SUCCESS [ 4.501 > s] > [INFO] Apache Ranger Distribution ......................... FAILURE [03:31 > min] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 14:23 min > [INFO] Finished at: 2023-04-28T12:39:07+08:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on > project ranger-distro: Failed to create assembly: Error creating assembly > archive schema-registry-plugin: Problem creating jar: > jar:file:/root/ranger/ranger/distro/target/ranger-distro-3.0.0-SNAPSHOT.jar!/META-INF/maven/org.apache.ranger/ranger-distro/pom.properties: > JAR entry META-INF/maven/org.apache.ranger/ranger-distro/pom.properties not > found in /root/ranger/ranger/distro/target/ranger-distro-3.0.0-SNAPSHOT.jar > -> [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 :ranger-distro > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)