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

Stuart McCulloch closed FELIX-2600.
-----------------------------------

    Resolution: Won't Fix

The "bundleall" goal is going to be deprecated, so closing this issue as won't 
fix. Instead new features/goals will be added to solve common use-cases such as 
creating mega-bundles, etc.

> NPE in goals wrap and bundleall if  "project already processed"
> ---------------------------------------------------------------
>
>                 Key: FELIX-2600
>                 URL: https://issues.apache.org/jira/browse/FELIX-2600
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.1.0
>         Environment: win32 maven 3 beta 3
>            Reporter: APF
>            Priority: Minor
>
> Trying to wrap dependencies as bundle via wrap or bundleall will result in a 
> NPE.
> See current trunk:
> http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java?revision=925279&view=markup
> line 182, 188
> 179    if ( alreadyBundled( project.getArtifact() ) )
> 180   {
> 181   getLog().debug( "Ignoring project already processed " + 
> project.getArtifact() );
> 182   return null;
> 183   } 
> results in NPE at:
> 579    protected void logDuplicatedPackages( BundleInfo bundleInfo )
> 580   {
> 581   Map duplicatedExports = bundleInfo.getDuplicatedExports(); 
> A simple  null check did it for me. I hope more context is not necessary 
> since it looks quite obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to