Ignore artifact section for parent pom

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hey,

      im trying to use placeholder for automatically recognize the maven project and the associated jars.

      Im trying to upload automatically the jar without specifying the name, over and over again.
      That why im using placeholder. Its working fine. Really good.
      But when im using Maven with Parent and Childs POM, the setup isnt working anymore because
      the plugin "recognized" the parent pom, as a pom as well.

      Scenario:
      Parent1 -> Child1 & Child2
      The plugin tries to find a jar in target/Parent1-1.0.jar and tries to upload it. Obvious, its the parent, no jar exists. Is it possible that the plugin recognize a parent pom and skip the artifact section?

      Nexus Setup (Same as on the picture):
      Nexus Version: NEXUS3
      Protocol: HTTP
      NEXUS URL: <URL>
      Credentials: <CREDENTIALS>
      GroupId: ${POM_GROUPID}
      Version: ${POM_VERSION}-${BUILD_ID}
      Repository: <REPO NAME>
      Artifacts:
      ArtifactId: ${POM_ARTIFACTID}
      Type: jar
      Classifier: 
      File: target/${POM_ARTIFACTID}-${POM_VERSION}.jar

      Its my first "ISSUE" that im writing, im sorry for everything, hope that all information are okay.

        1. Screenshot_2.png
          25 kB
          Roman-Rene
        2. Screenshot_3.png
          74 kB
          Roman-Rene

            Assignee:
            Suresh Kumar
            Reporter:
            Roman-Rene
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: