parttimenerd opened a new issue, #966:
URL: https://github.com/apache/maven-enforcer/issues/966

   ### Affected version
   
   all
   
   ### Bug description
   
   The newest SapMachine 21 release has the version string "21.0.10.0.1". When 
passing this version string directly into the enforcer plugin via:
   
   ```xml
              <configuration>
                 <rules>
                   <requireJavaVersion>
                     <version>21.0.10.0.1</version>
                   </requireJavaVersion>
                 </rules>
               </configuration>
   ```
   
   It fails when running on such a Java release (the problem is not SapMachine 
specific):
   
   ```sh
   [ERROR] Rule 0: org.apache.maven.enforcer.rules.version.RequireJavaVersion 
failed with message:
   [ERROR] Detected JDK 
/Users/i560383_1/Downloads/sapmachine-jdk-21.0.10.0.1.jdk/Contents/Home is 
version 21.0.10-0 which is not in the allowed range [21.0.10.0.1,).
   ```
   
   This is due to only the normalized (broken here) version string is compared 
with the actual version.
   
   Code sample in https://github.com/parttimenerd/sapmachine-21.0.10.0.1-demo


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to