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

Plugin configuration can randomly fail in case of method overloading as it doesn't take into account implementation attribute

    XMLWordPrintableJSON

Details

    Description

      Originally discovered via a Jetty bug report see https://github.com/jetty/jetty.project/issues/11732

      The bean to configured have the following overloading method naming:

      • public void setExtraClasspath(String extraClasspath)
      • public void setExtraClasspath(List<Resource> extraClasspath)

      The plugin configuration:

      <webApp>
      <extraClasspath>${basedir}/config</extraClasspath>
      </webApp>

      even forcing the implementation attribute doesn't help

      <webApp>
      <extraClasspath implementation="java.lang.String">${basedir}/config</extraClasspath>
      </webApp>

      The fix is implemented via the PR https://github.com/eclipse/sisu.plexus/pull/52

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              olamy Olivier Lamy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: