Feature #16697

Enforce OpenJDK

Added by Manuele Simi 8 months ago. Updated 8 months ago.

Status:ClosedStart date:May 16, 2019
Priority:NormalDue date:
Assignee:Manuele Simi% Done:

100%

Category:tools
Sprint:zz - Build utils
Milestones:
Duration:

Description

The maven-parent must enforce the usage of OpenJDK as target Java platform.

History

#1 Updated by Manuele Simi 8 months ago

  • Status changed from New to In Progress

#2 Updated by Manuele Simi 8 months ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

The enforcement has been added. Maven-parent now checks if the VM used by Maven is OpenJDK.

For instance, running on Hotspot will genereate the following error:

[INFO] ------------------------------------------------------------------------
[INFO] Building gCube eXtensions to REST with HTTP 1.1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce) @ gxHTTP ---
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireProperty failed with message:
Java Vendor must be OpenJDK. Found: Java HotSpot(TM) 64-Bit Server VM

While switching the same project to OpenJDK:
~~~
[INFO] ------------------------------------------------------------------------
[INFO] Building gCube eXtensions to REST with HTTP 1.1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce) @ gxHTTP ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gxHTTP ---
~~~

This feature is part of a series that will shape maven-parent 1.1.0 (not yet deployed).

Also available in: Atom PDF