Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-374

useProjectArtifact is missing from XSD file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      N/A

      Description

      The field useProjectArtifact is missing from the following XSD files:

      http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd
      http://maven.apache.org/xsd/assembly-1.0.0.xsd

      I found a reference to it in:
      http://books.sonatype.com/maven-book/reference/assemblies.html

      Here is a working example that uses it:

      <?xml version='1.0' encoding='UTF-8'?>
      <assembly>
      <id></id>
      <formats>
      <format>zip</format>
      </formats>
      <includeBaseDirectory>false</includeBaseDirectory>
      <dependencySets>
      <dependencySet>
      <outputDirectory></outputDirectory>
      <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      </dependencySet>
      </dependencySets>
      </assembly>

      There are other missing attributes (useProjectAttachments at least) as well.

      Using these XSD files to validate assembly xml files that use these fields will incorrectly fail.

      -Chris

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chrisgwarp Chris Graham
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: