I wonder if this is related to MNG-5726, I’ve also since reproduced with a
fresh empty quickstart project just adding:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>validate</phase>
<configuration>
<rules>
<requireOS>
<family>unix</family>
</requireOS>
</rules>
</configuration>
</execution>
</executions>
</plugin>
On 26 May 2024 at 1:53:34 PM, Mark Derricutt <[email protected]> wrote:
> Hey all, congrats on the new release - only I just updated and
> unfortunately get this with the enforcer plugin:
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce
> (enforce-versions) on project com.smxemail.disaster.manager: Execution
> enforce-versions of goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.4.1:enforce failed.:
> NullPointerException -> [Help 1]
>
> Caused by: java.lang.NullPointerException
> at
> org.apache.maven.model.profile.activation.OperatingSystemProfileActivator.isActive
> (OperatingSystemProfileActivator.java:61)
> at org.apache.maven.enforcer.rules.RequireOS.isAllowed
> (RequireOS.java:146)
> at org.apache.maven.enforcer.rules.RequireOS.execute
> (RequireOS.java:104)
> at org.apache.maven.plugins.enforcer.EnforceMojo.executeRuleNew
> (EnforceMojo.java:351)
> at org.apache.maven.plugins.enforcer.EnforceMojo.executeRule
> (EnforceMojo.java:325)
> at org.apache.maven.plugins.enforcer.EnforceMojo.execute
> (EnforceMojo.java:248)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo
> (DefaultBuildPluginManager.java:126)
> at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
> (MojoExecutor.java:328)
>
>
> This is running on macOS, with the following config:
>
> <requireOS>
> <family>unix</family>
> </requireOS>
>
> Note this works fine on previous versions of Maven.
>
> Is anyone else able to confirm this?
>
> --
> "Great artists are extremely selfish and arrogant things" — Steven Wilson,
> Porcupine Tree
>
>
> On 25 May 2024 at 9:58:20 PM, Tamás Cservenák <[email protected]> wrote:
>
>> Howdy,
>>
>> The vote has passed with the following result:
>>
>> +1b: Karl-Heinz, Michael, Slawomir, Olivier, Guillaume, Benjamin
>> +1nb: Tony, Romain, Mateusz, Matthias, Michael, Jorge
>>
>> PMC quorum: reached
>>
>> I will promote the artifacts to the central repo, the source release ZIP
>> file and add this release to the board report.
>>
>> All, thanks a LOT for participating and casting votes!
>>
>> Thanks
>> T
>>
>