[MENFORCER-503] requireOS cause NPE with Maven 3.9.7 (original) (raw)

In rule requireOS we use: org.apache.maven.model.profile.activation.ProfileActivator#isActive

as

activator.isActive(createProfile(), null, null);

so provided context is null ... but not Maven use context without protecting it

From docs:

/**

So enforcer use it in wrong way.

is related to

New Feature - A new feature of the product, which has yet to be developed. MNG-5726 Update OS Activation To Allow Wildcards In OS Version

links to