You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2017/06/01 01:17:04 UTC

[jira] [Commented] (MSHADE-247) NullpointerException when createSourcesJar = true and source jar cannot be found

    [ https://issues.apache.org/jira/browse/MSHADE-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032286#comment-16032286 ] 

Emmanuel Lecharny commented on MSHADE-247:
------------------------------------------

Being hit by the exact same issue while trying to release Apache LDAP API project. Would be cool to have it fixed (and the patch is correct, AFAICT)...

> NullpointerException when createSourcesJar = true and source jar cannot be found 
> ---------------------------------------------------------------------------------
>
>                 Key: MSHADE-247
>                 URL: https://issues.apache.org/jira/browse/MSHADE-247
>             Project: Maven Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Sodasmile
>            Priority: Critical
>         Attachments: Resolving_nullpointer_exception_when_resolvedArtifact_is_null_.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Configuration as follows: 
> {code}
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-shade-plugin</artifactId>
>     <configuration>
>         <createSourcesJar>true</createSourcesJar>
>     </configuration>
>     <executions>
>         <execution>
>             <phase>package</phase>
>             <goals>
>                 <goal>shade</goal>
>             </goals>
>         </execution>
>     </executions>
> </plugin>
> {code}
> Dependency defined as follows: 
> {code}
> <dependency>
>   <groupId>javax.jnlp</groupId>
>   <artifactId>jnlp-api</artifactId>
>   <version>1.7.0_06</version>
> </dependency>
> {code}
> Sources for javax.jnlp for some reason disappeared from our maven repo proxy, which made maven-shade-plugin to output: 
> {code}
> [INFO] Including javax.jnlp:jnlp-api:jar:1.7.0_06 in the shaded jar.
> [WARNING] Could not get sources for javax.jnlp:jnlp-api:jar:1.7.0_06:compile
> {code}
> and in turn: 
> {code}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade (default) on project xxxxx: Execution default of goal org.apache.maven.plugins:maven-shade-plugin:3.0.0:shade failed. NullPointerException -> [Help 1]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)