Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve ranger-examples-distro module compile error #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PrivateLi
Copy link

When compile ranger with below command:
mvn -DskipTests clean compile package install assembly:assembly
Throws create assembly failed:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project ranger-examples-distro: Failed to create assembly: Error creating assembly archive sampleapp: You must set at least one file. -> [Help 1]

compile error.txt

@PrivateLi PrivateLi changed the title Reslove ranger-examples-distro module compile error Resolve ranger-examples-distro module compile error Aug 7, 2020
@icycle77
Copy link

I wanted to say thanks for putting this out there @PrivateLi , I hit the exact same problem and your patch got me to a successful mvn package step.

I did see this note in the readme, looks like they don't take Github PRs yet.

aakashnand added a commit to aakashnand/ranger that referenced this pull request Mar 20, 2021
Trino uses Jdk11. To build the plugin on JDK11 .This commit includes
patch from RANGER-2317 and apache#71
aakashnand added a commit to aakashnand/ranger that referenced this pull request Mar 20, 2021
Trino uses Jdk11. To build the plugin on JDK11 .This commit includes
patch from RANGER-2317 and apache#71
aakashnand added a commit to aakashnand/ranger that referenced this pull request Mar 20, 2021
Trino uses Jdk11. To build the plugin on JDK11 .This commit includes
patch from RANGER-2317 and apache#71
aakashnand added a commit to aakashnand/ranger that referenced this pull request Mar 20, 2021
Trino uses Jdk11. To build the plugin on JDK11 .This commit includes
patch from RANGER-2317 and apache#71
aakashnand added a commit to aakashnand/ranger that referenced this pull request Mar 20, 2021
Trino uses Jdk11. To build the plugin on JDK11 .This commit includes
patch from RANGER-2317 and apache#71
@ognjen-it
Copy link
Contributor

Why you don't merge it guys?
It resolved my problem.

@vikaskumareinstein
Copy link

vikaskumareinstein commented Mar 7, 2024

While trying to build the Apache Ranger 2.4.0 on Ubuntu 20.04, Using Java 1.8, I came across this issue. Not sure, whether this issue is related to maven or Ranger. It is failing on **Apache Ranger Distribution ** step. I am attaching the screenshot for reference.

apache_ranger_issue

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project ranger-distro: Failed to create assem
bly: Error creating assembly archive schema-registry-plugin: Problem creating jar: jar:file:/home/swapnendu_b/apache-ranger-2.4.0/distro/target/ran
ger-distro-2.4.0.jar!/META-INF/maven/org.apache.ranger/ranger-distro/pom.properties: JAR entry META-INF/maven/org.apache.ranger/ranger-distro/pom.p
roperties not found in /home/swapnendu_b/apache-ranger-2.4.0/distro/target/ranger-distro-2.4.0.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] https://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

@shubhluck
Copy link

This is not an issue that needs to be merged, it happens when there is a mismatch in main Ranger version specified in ranger/pom.xml and distro/pom.xml or ranger-examples/pom.xml, this causes unable to identify right project parent directory causing file path or no such file exception issue.

@vikaskumareinstein
Copy link

Actually, I was getting this issue. I didn't mean to merge it. Thanks for the clarification though. Will try with your fix.

@vqcuong
Copy link

vqcuong commented May 26, 2024

I got the same error with Apache Ranger Distribution. Does anyone have a solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants