You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "df (Jira)" <ji...@apache.org> on 2020/10/08 09:37:00 UTC

[jira] [Updated] (MASSEMBLY-943) NPE if dependencySet includes Dependency with "provided" scope

     [ https://issues.apache.org/jira/browse/MASSEMBLY-943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

df updated MASSEMBLY-943:
-------------------------
    Component/s: dependencySet

> NPE if dependencySet includes Dependency with "provided" scope
> --------------------------------------------------------------
>
>                 Key: MASSEMBLY-943
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-943
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: dependencySet
>         Environment: Windows 10
>            Reporter: df
>            Priority: Major
>              Labels: NullPointerException
>         Attachments: stacktrace.txt
>
>
> Having an assembly descriptor of:
> {code:java}
> <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>
> {code}
> and in the pom.xml
>  
> {code:java}
> <dependencies>
>   <dependency>
>     <groupId>com.example</groupId>
>     <artifactId>a-runtime-artifact</artifactId>
>     <scope>provided</scope>
>   </dependency>
> </dependencies>
> {code}
> yields to:
> {code:java}
> Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:3.1.0:single failed.: NullPointerException)
> {code}
> see appended file [^stacktrace.txt].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)