Failed building my backend spring

lorenzotirotta02
TRIAL

7 months ago

10 11.69 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: error: release version 21 not supported -> [Help 1]

10 11.69 [ERROR]

10 11.69 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

10 11.69 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

10 11.69 [ERROR]

10 11.69 [ERROR] For more information about the errors and possible solutions, please read the following articles:

10 11.69 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

10 ERROR: process "/bin/bash -ol pipefail -c chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install" did not complete successfully: exit code: 1

[stage-0 6/7] RUN --mount=type=cache,id=s/90aa52f3-36e8-410d-83d7-d052b2ddbf80-m2/repository,target=/app/.m2/repository chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install:

11.69 [INFO] Total time: 9.628 s

11.69 [INFO] Finished at: 2024-12-04T15:32:08Z

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

11.69 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: error: release version 21 not supported -> [Help 1]

11.69 [ERROR]

11.69 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

11.69 [ERROR] Re-run Maven using the -X switch to enable full debug logging.

11.69 [ERROR]

11.69 [ERROR] For more information about the errors and possible solutions, please read the following articles:

11.69 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Dockerfile:19

17 | # build phase

18 | COPY . /app/.

19 | >>> RUN --mount=type=cache,id=s/90aa52f3-36e8-410d-83d7-d052b2ddbf80-m2/repository,target=/app/.m2/repository chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install

20 |

21 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c chmod +x ./mvnw && ./mvnw -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Failed building my backend spring - Railway Help Station