Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10413

os-maven-plugin not setting `os.detected.classifier` property on partial maven builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.Beta5
    • 10.0.0.Beta4
    • Build
    • None

    Description

      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.

      [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]
      

      The solution is to add the following to the parent pom:

            <extensions>
               <extension>
                  <groupId>kr.motd.maven</groupId>
                  <artifactId>os-maven-plugin</artifactId>
               </extension>
            </extensions>
      

      Attachments

        Activity

          People

            remerson@redhat.com Ryan Emerson
            remerson@redhat.com Ryan Emerson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: