carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
528 stars 424 forks source link

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 2 years ago

Prasadevops0710 commented 2 years ago

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 commented 2 years ago

see #221