Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41224

Not able to publish the pom file with maven-publish plugin in gradle

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am using the "maven-publish" plugin to generate poms for the artifacts in my gradle build. But when I use the Artifactory jenkins plugin in my pipeline script, it's only detecting the artifacts, but not the generated pom files.

      It gives the following error,
      Cannot publish pom for project ':' since it does not contain the Maven plugin install task and task ':artifactoryPublish' does not specify a custom pom path.

      Note: I cannot use the "maven" plugin because it's install task conflicts with the android's install task.

      I would be happy to have a workaround if this cannot be fixed because it's blocking our builds and we need to find a way to upload the pom files urgently.

        Attachments

          Activity

          Hide
          eyalbe Eyal Ben Moshe added a comment -

          Abishek Manoharan,
          If you can share a sample Pipeline script and a gradle project (preferably on github) that reproduces this issue, we might be able test and look into this issue.

          Show
          eyalbe Eyal Ben Moshe added a comment - Abishek Manoharan , If you can share a sample Pipeline script and a gradle project (preferably on github) that reproduces this issue, we might be able test and look into this issue.
          Hide
          abishek3876 Abishek Manoharan added a comment -

          Eyal Ben Moshe After some digging around, I found out that my artifact was not part of the archives configuration in gradle. So I don't think this is an issue in the plugin. Will close this issue.

          Show
          abishek3876 Abishek Manoharan added a comment - Eyal Ben Moshe After some digging around, I found out that my artifact was not part of the archives configuration in gradle. So I don't think this is an issue in the plugin. Will close this issue.

            People

            Assignee:
            eyalbe Eyal Ben Moshe
            Reporter:
            abishek3876 Abishek Manoharan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: