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

ls: cannot access '/usr/bin/mvn': Operation not permitted Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher #262

Open
Prasadevops0710 opened this issue Mar 10, 2022 · 1 comment

Comments

@Prasadevops0710
Copy link

Step 4/8 : RUN mvn verify clean --fail-never
---> Running in be816de6e910
ls: cannot access '/usr/bin/mvn': Operation not permitted
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
The command '/bin/sh -c mvn verify clean --fail-never' returned a non-zero code: 1

HERE IS MY DOCKERFILE

FROM maven:3.8.4-openjdk-8 as build
WORKDIR /home/app
ADD pom.xml /home/app
RUN mvn verify clean --fail-never
ADD src /home/app/src
RUN mvn package

FROM openjdk:8
COPY --from=build /home/app/target/rtbkit-adapter-0.0.1-SNAPSHOT.jar /target/rtbkit-adapter-0.0.1-SNAPSHOT.jar

@carlossg
Copy link
Owner

carlossg commented Apr 5, 2022

see #221

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

No branches or pull requests

2 participants