Help with DockerFIile

Step 7/11 : RUN ./.mvn/mvnw package

—> Running in c6b0877aa750

[INFO] Scanning for projects…

[INFO]

[INFO] ----------------------< io.takari:maven-wrapper >-----------------------

[INFO] Building Maven Wrapper 0.5.7-SNAPSHOT

[INFO] ------------------------------[ provisio ]------------------------------

[INFO]

[INFO] — takari-lifecycle-plugin:1.13.5:process-resources (default-process-resources) @ maven-wrapper —

[INFO]

[INFO] — takari-lifecycle-plugin:1.13.5:compile (default-compile) @ maven-wrapper —

[INFO] Previous incremental build state does not exist, performing full build

[INFO] Compiling 5 sources to /app/target/classes

Error: /app/src/main/java/Main.java:[5,8] The import com.microsoft cannot be resolved

Error: /app/src/main/java/Main.java:[6,8] The import org.slf4j cannot be resolved

Error: /app/src/main/java/Main.java:[7,8] The import org.slf4j cannot be resolved

Error: /app/src/main/java/Main.java:[15,9] Logger cannot be resolved to a type

Error: /app/src/main/java/Main.java:[15,25] LoggerFactory cannot be resolved

Error: /app/src/main/java/Main.java:[26,9] HubConnection cannot be resolved to a type

Error: /app/src/main/java/Main.java:[26,39] HubConnectionBuilder cannot be resolved

Error: /app/src/main/java/Main.java:[31,40] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[38,40] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[43,45] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[55,49] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[74,59] HubConnectionState cannot be resolved to a variable

Error: /app/src/main/java/Enums/InputCommand.java:[26,60] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Enums/InputCommand.java:[26,98] Cannot refer to the non-final local variable value defined in an enclosing scope

[INFO] Compiled 5 out of 5 sources (857 ms)

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.317 s

[INFO] Finished at: 2023-05-25T01:55:26Z

[INFO] ------------------------------------------------------------------------

Error: Failed to execute goal io.takari.maven.plugins:takari-lifecycle-plugin:1.13.5:compile (default-compile) on project maven-wrapper: 14 error(s) encountered:

Error: /app/src/main/java/Main.java:[5:8] The import com.microsoft cannot be resolved

Error: /app/src/main/java/Main.java:[6:8] The import org.slf4j cannot be resolved

Error: /app/src/main/java/Main.java:[7:8] The import org.slf4j cannot be resolved

Error: /app/src/main/java/Main.java:[15:9] Logger cannot be resolved to a type

Error: /app/src/main/java/Main.java:[15:25] LoggerFactory cannot be resolved

Error: /app/src/main/java/Main.java:[26:9] HubConnection cannot be resolved to a type

Error: /app/src/main/java/Main.java:[26:39] HubConnectionBuilder cannot be resolved

Error: /app/src/main/java/Main.java:[31:40] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[38:40] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[43:45] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[55:49] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Main.java:[74:59] HubConnectionState cannot be resolved to a variable

Error: /app/src/main/java/Enums/InputCommand.java:[26:60] Lambda expressions are allowed only at source level 1.8 or above

Error: /app/src/main/java/Enums/InputCommand.java:[26:98] Cannot refer to the non-final local variable value defined in an enclosing scope

Error:

Error: → [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] MojoExecutionException - Apache Maven - Apache Software Foundation

The command ‘/bin/sh -c ./.mvn/mvnw package’ returned a non-zero code: 1

Error: Process completed with exit code 1.

I have been stuck here for way too long. Someone please help. I can start the docker afresh

Hi @Korosaki ,
Have you come right, or do you still require assistance?