]
Ryan Emerson updated ISPN-10413:
--------------------------------
Status: Open (was: New)
os-maven-plugin not setting `os.detected.classifier` property on
partial maven builds
-------------------------------------------------------------------------------------
Key: ISPN-10413
URL:
https://issues.jboss.org/browse/ISPN-10413
Project: Infinispan
Issue Type: Bug
Components: Build
Affects Versions: 10.0.0.Beta4
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Priority: Major
Fix For: 10.0.0.Beta5
When executing {{mvn clean install -am -pl core}} the commons module will fail because
the property {{os.detected.classifier}} is not set by the {{os-maven-plugin}} resulting in
a NPE being thrown by the {{proto-schema-compatibility}} maven plugin.
{code:java}
[ERROR] Failed to execute goal
org.infinispan.maven-plugins:proto-schema-compatibility:1.0.1.Final:proto-schema-compatibility-check
(default) on project infinispan-commons: Execution default of goal
org.infinispan.maven-plugins:proto-schema-compatibility:1.0.1.Final:proto-schema-compatibility-check
failed.: NullPointerException -> [Help 1]
{code}
The solution is to add the following to the parent pom:
{code:java}
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
</extension>
</extensions>
{code}