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

Non existing folder produces NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5.3
    • 2.5.4
    • component descriptor
    • None
    • All

    Description

      If i define a descriptor which uses a not existing folder it will produce a NPE.
      Using the following descriptor:

      <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
      
        <id>dist-assembly</id>
      
        <formats>
            <format>tar.gz</format>
        </formats>
      
        <fileSets>
          <fileSet>
            <directory>folder</directory>
            <outputDirectory>.</outputDirectory>
          </fileSet>
        </fileSets>
      </assembly>
      

      where the folder folder does not exist will produce the failure. If i create the folder with a single file it will not occur.

      Attachments

        1. massembly-754.tar.gz
          0.8 kB
          Karl Heinz Marbaise

        Activity

          People

            krosenvold Kristian Rosenvold
            khmarbaise Karl Heinz Marbaise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: