Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-27

jar:sign doesn't check if project produces an artifact

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None
    • Maven 2.0.2
      Latest Jar checkout

    Description

      jar:sign does not skip projects that don't produce an artifact (=pom packaging).
      Attached patch to detect this situation and handle it gracefully.

      Since similar issues showed up in the Javadoc and Cobertura plugin, too, I was wondering if an additional mojo annotation like @requireLanguage (project must have e.e. java as its language) or @requireArtifact (don't execute if this project does not create an artifact, e.g. has pom packaging) would make sense.

      Stuff like this makes it much harder to establish a company-wide standardized build process, since there are always pom projects in the inheritance hierarchy...

      Attachments

        1. jarsign-patch.txt
          1 kB
          Michael Böckling
        2. MJAR-27-maven-jar-plugin.patch
          1.0 kB
          Michael Böckling
        3. MJAR-27-maven-jar-plugin.patch
          1 kB
          Michael Böckling
        4. MJAR-27-maven-jar-plugin.diff
          2 kB
          Jerome Lacoste

        Issue Links

          Activity

            People

              mperham Mike Perham
              buddycasino Michael Böckling
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: