ls: cannot access '/usr/bin/mvn': Operation not permitted Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher #262
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
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