You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2020/07/31 12:30:00 UTC

[jira] [Updated] (MENFORCER-338) Along with JavaVersion, allow enforcement of the JavaVendor

     [ https://issues.apache.org/jira/browse/MENFORCER-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte updated MENFORCER-338:
-------------------------------------
    Description: 
It would be useful to be able to ensure that a particular vendor JDK is being used.  For example, I may need to confirm that we are using AdoptOpenJDK 1.8.0_232 and not Oracle JDK 1.8.0_232.   

 

I would assume that you would define a set of enums for the vendors - e.g. (OracleJDK, AdoptOpenJDK, JavaOpenJDK, and maybe a few others) so that it would look something like this to insure that either Adopt or Amazon JDK vendor was used.

EDIT: implemented as below, to be in line with RequireOs
{code:xml}
<requireJavaVendor>
  <name>Oracle Corporation</name>
</requireJavaVendor>
{code}

  was:
It would be useful to be able to ensure that a particular vendor JDK is being used.  For example, I may need to confirm that we are using AdoptOpenJDK 1.8.0_232 and not Oracle JDK 1.8.0_232.   

 

I would assume that you would define a set of enums for the vendors - e.g. (OracleJDK, AdoptOpenJDK, JavaOpenJDK, and maybe a few others) so that it would look something like this to insure that either Adopt or Amazon JDK vendor was used.

<requireJavaVendor>

   <vendors>

      <vendor>adpt</vendor>

      <vendor>amzn</vendor>

   </vendors>

</requireJavaVendor>


> Along with JavaVersion, allow enforcement of the JavaVendor
> -----------------------------------------------------------
>
>                 Key: MENFORCER-338
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-338
>             Project: Maven Enforcer Plugin
>          Issue Type: Improvement
>            Reporter: Jeffrey Bennett
>            Priority: Major
>
> It would be useful to be able to ensure that a particular vendor JDK is being used.  For example, I may need to confirm that we are using AdoptOpenJDK 1.8.0_232 and not Oracle JDK 1.8.0_232.   
>  
> I would assume that you would define a set of enums for the vendors - e.g. (OracleJDK, AdoptOpenJDK, JavaOpenJDK, and maybe a few others) so that it would look something like this to insure that either Adopt or Amazon JDK vendor was used.
> EDIT: implemented as below, to be in line with RequireOs
> {code:xml}
> <requireJavaVendor>
>   <name>Oracle Corporation</name>
> </requireJavaVendor>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)