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:47:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17210110#comment-17210110 ]
df commented on MASSEMBLY-943:
------------------------------
seems to work with v3.2.0+
> 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
> Affects Versions: 3.1.0
> 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 or runtime</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].
>
> I would expect a more meaningful error message at least or even better it would just work ;).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)