Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4648

NullPointerException thrown from DefaultPluginRealmCache#pluginHashCode method if project-level plugin dependency misses version

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              iloncar Ivica Loncar
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: