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] [Created] (MASSEMBLY-943) NPE if dependencySet includes
Dependency with "provided" scope
df created MASSEMBLY-943:
----------------------------
Summary: 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
Environment: Windows 10
Reporter: df
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)