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

df updated MASSEMBLY-943:
-------------------------
    Description: 
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].

 

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

  was:
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].

 

I would expect a more meaningful error message or no error message at all ;).


> 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, 3.2.0, 3.3.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</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)

Reply via email to