Uploaded image for project: 'Maven Source Plugin'
  1. Maven Source Plugin
  2. MSOURCES-81

allow sources jar to contain Maven descriptor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 3.0.0
    • Labels:
      None

      Description

      The source:jar mojo explicitly prevents the Maven descriptor from being added to the produced -sources.jar file.

      https://github.com/apache/maven-plugins/blob/trunk/maven-source-plugin/src/main/java/org/apache/maven/plugin/source/AbstractSourceJarMojo.java#L292-292

      I could not find an explanation or technical reason why this is done.

      Adding the maven descriptor to the source jar can help expose valuable information about the build that produced it.

      Expected:

      • allow the archiver used to create the source jar to respect the plexus archiver configuration if it is configured to include the Maven descriptor.
      • preserve the default behaviour of not including the Maven descriptor, for (unknown) backwards compatibility reasons only

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                peterlynch Peter lynch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: