Причина: java.lang.ClassNotFoundException: runners.CukesRunner
(https://i.sstatic.net/rYMFekZ1.png)
Код: Выделить всё
org.apache.maven.plugins
maven-compiler-plugin
3.10.1
${maven.compiler.source}
${maven.compiler.target}
org.apache.maven.plugins
maven-surefire-plugin
3.2.3
true
test-output/reports/test-automation-report.html
**/CukesRunner.java
true
alphabetical
methods
3
true
Код: Выделить всё
FROM maven:3.9.9-eclipse-temurin-17 AS build
WORKDIR /app
COPY pom.xml ./
COPY src ./src
RUN mvn clean package
FROM eclipse-temurin:17-jdk AS runtime
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar","../src/test/java/runners/CukesRunner.java"]
Подробнее здесь: https://stackoverflow.com/questions/790 ... y-java-lan