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

NPE if dependencySet includes Dependency with "provided" scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.1.0
    • None
    • dependencySet
    • Windows 10

    Description

      Having an assembly descriptor of:

      <dependencySet>
        <useProjectArtifact>false</useProjectArtifact>
        <outputDirectory>out/dir</outputDirectory>
        <includes>
          <include>com.example:a-runtime-artifact</include>
        </includes>
        <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}</outputFileNameMapping>
      </dependencySet>
      

      and in the pom.xml

       

      <dependencies>
        <dependency>
          <groupId>com.example</groupId>
          <artifactId>a-runtime-artifact</artifactId>
          <scope>provided or runtime</scope>
        </dependency>
      </dependencies>
      

      yields to:

      Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:3.1.0:single failed.: NullPointerException)
      

      see appended file stacktrace.txt.

       

      I would expect a more meaningful error message at least or even better it would just work .

      Attachments

        1. stacktrace.txt
          5 kB
          df

        Activity

          People

            Unassigned Unassigned
            dforce df
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: