You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/04/27 13:11:12 UTC

[jira] Closed: (MNG-4648) NullPointerException thrown from DefaultPluginRealmCache#pluginHashCode method if project-level plugin dependency misses version

     [ http://jira.codehaus.org/browse/MNG-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4648.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
         Assignee: Benjamin Bentmann

Fixed in [r938410|http://svn.apache.org/viewvc?view=revision&revision=938410].

> NullPointerException thrown from DefaultPluginRealmCache#pluginHashCode method if project-level plugin dependency misses version
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4648
>                 URL: http://jira.codehaus.org/browse/MNG-4648
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, POM
>    Affects Versions: 3.0-beta-1
>            Reporter: Ivica Loncar
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-2
>
>
> As a user i would like to see better error reporting from DefaultPluginRealmCache#pluginHashCode method
> Currently it calculates hash value based on a dependency metadata, but if I omit version it fails with NullPointer exception.
> It would be more user friendly to validate metadata prior to calculating hash value and to display more meaningful error to the end user.
> Test scenario:
>  - configure plugin and create dependencies
>  - add dependency but DO NOT specify version
>  - run maven such that plugin is invoked
> maven will fail without reporting which dependency doesn't have version

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira