You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamás Cservenák (Jira)" <ji...@apache.org> on 2022/05/17 13:26:00 UTC
[jira] [Closed] (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 ]
Tamás Cservenák closed MASSEMBLY-943.
-------------------------------------
Resolution: Cannot Reproduce
As OP reported, seems to work with 3.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.20.7#820007)