Maven
  1. Maven
  2. MNG-3535

Valid properties which look self referential fail to resolve

    Details

      Description

      In 2.0.9 properties which look self referential but would otherwise resolve to a system property are failing due to fixes for MNG-2339. Current example is any version of jruby shared pom at
      http://repo1.maven.org/maven2/org/jruby/shared/1.0.1/shared-1.0.1.pom

      which contains:
      <java.specification.version>$

      {java.specification.version}

      </java.specification.version>

      The question is whether this should be valid or not, but it has worked in every version up to and including 2.0.8 because System properties were available in the first interpolate step. In 2.0.9 this first pass does not include the system props and an exception is thrown because of the self reference check.

      1. model-int.patch
        1 kB
        Shane Isbell

        Issue Links

          Activity

          Chris Custine created issue -
          Brian Fox made changes -
          Field Original Value New Value
          Fix Version/s 2.0.10 [ 14112 ]
          Hide
          Shane Isbell added a comment -

          Patch for this issue. If the system property starts with 'pom.' or 'project.' then self -references are not allowed. But if the self-reference is anything else (outside of the model), it is allowed.

          Show
          Shane Isbell added a comment - Patch for this issue. If the system property starts with 'pom.' or 'project.' then self -references are not allowed. But if the self-reference is anything else (outside of the model), it is allowed.
          Shane Isbell made changes -
          Attachment model-int.patch [ 34166 ]
          Brian Fox made changes -
          Link This issue is related to MNG-3530 [ MNG-3530 ]
          Brian Fox made changes -
          Link This issue is related to MNG-3536 [ MNG-3536 ]
          Brian Fox made changes -
          Link This issue relates to MNG-2562 [ MNG-2562 ]
          Brian Fox made changes -
          Link This issue is related to MNG-3070 [ MNG-3070 ]
          Hide
          Shane Isbell added a comment -

          Bug fix here: https://svn.apache.org/repos/asf/maven/sandbox/branches/MNG-3536

          This is part of a rewrite of the interpolation code.

          Show
          Shane Isbell added a comment - Bug fix here: https://svn.apache.org/repos/asf/maven/sandbox/branches/MNG-3536 This is part of a rewrite of the interpolation code.
          John Casey made changes -
          Link This issue is related to MNG-3530 [ MNG-3530 ]
          John Casey made changes -
          Assignee John Casey [ jdcasey ]
          John Casey made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          John Casey made changes -
          Fix Version/s 2.1.0-M1 [ 14503 ]
          Fix Version/s 2.0.10 [ 14112 ]
          John Casey made changes -
          Link This issue relates to MNG-3746 [ MNG-3746 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12713949 ] Default workflow, editable Closed status [ 12753723 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12950688 ] Default workflow, editable Closed status [ 12986934 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          66d 21h 20m 1 John Casey 25/Jun/08 16:55

            People

            • Assignee:
              John Casey
              Reporter:
              Chris Custine
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development