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

Barfs at attribues named .*encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.8
    • 2.0.9
    • POM::Encoding
    • None

    Description

      With 2.0.8 a regression snuck in:

      Please see attached pom for details.

      In several of my project I use xdoclet-maven-plugin. In xdoclet-maven-plugin's configuration element there is an element, with an attribute xmlencoding="${variable}" (installed into my repository - NOT talking about building them).

      If maven tries to read these pom's (from my repo) it barfs with an error message:
      "
      Project ID: some.group.id:myproject-war

      Reason: Failed to build model from file 'c:\data\.m2\repository\some\group\id\myproject-war\1.3-SNAPSHOT\myproject-war-1.3-SNAPSHOT.pom'.
      Error: '${ENCODING.DEFAULT}' for project some.group.id:myproject-war .
      "

      This did NOT happen before 2.0.8 - so it must be a regression.

      What really puzzles me is why maven tries to parse these tags in the first place (as they are configurations for elements which should be of no value for this maven execution) - but I guess it was introduced when fixing MNG-2932, MNG-2025 and/or MNG-2254 without knowing any details.

      As 2.0.8 fails the entire build (which works on 2.0.7) I'm rating this as Blocker.

      Attachments

        1. examplepom.xml
          4 kB
          David J. M. Karlsen
        2. pom.xml
          2 kB
          David J. M. Karlsen

        Activity

          People

            hboutemy Herve Boutemy
            david@davidkarlsen.com David J. M. Karlsen
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: