Hi,
I am trying to build openvidu 2.32.x version which is recently released as per given documentation:
Developing OpenVidu - OpenVidu Docs
But when i ran command “mvn -DskipTests=true clean install”, the error is “Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.6.2:enforce (enforce-java-version) on project openvidu-parent:
[ERROR] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:[ERROR] To build this project JDK 25 (or greater) is required. Please install it.”
Should i proceed with JDK25 instead of JDK11. In documentation JDK11 is mentioned.
Please suggest
Your have found out-of-date information in the v2 documentation. Since release 2.32.X, Java 25 is required to compile OpenVidu Java artifacts (and Java 17 to use them in an application). Here are the declared versions: openvidu/pom.xml at v2 · OpenVidu/openvidu · GitHub
We will update the documentation to reflect that.
Cheers.
Already corrected in 2.32.X documentation:
After changing the version 1st step worked fine. But issue is coming in 2nd step while running “mvn clean compile package”. It is giving following error:
[ERROR] Failures:
[ERROR] OpenViduServerSecurityIntegrationTest.protectedEndpointsAllowAuthenticatedAccess:150 Response status expected:<200> but was:<404>
[INFO]
[ERROR] Tests run: 73, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Just add -DskipTests to the maven command