Skip to content

Please correct instructions on how to test and build spring-data-mongodb locally #4372

Closed
@denis-zhdanov

Description

@denis-zhdanov

Problem

Current sprng-data-mongodb documentation instructs to do the following:

1. docker run -it --mount type=bind,source="$(pwd)",target=/spring-data-mongodb-github springci/spring-data-openjdk8-with-mongodb-4.0:latest /bin/bash

and then execute tests from docker. The problem is that it fails with the following error:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.132 s
[INFO] Finished at: 2023-04-25T01:03:54Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.3.0:enforce (enforce-maven-version) on project spring-data-mongodb-parent:
[ERROR] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
[ERROR] Detected JDK version 1.8.0-222 (JAVA_HOME=/opt/java/openjdk/jre) is not in the allowed range [17,).

Task

Make sure that it's possible to test and build spring-data-mongodb locally using provided instructions

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions