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

Interpolation error due to cyclic expression for one of the POM coordinates gets needlessly repeated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0-beta-3
    • 3.0
    • None

    Description

      This simple POM

      <project>
        <modelVersion>4.0.0</modelVersion>
      
        <groupId>${groupId}</groupId>
        <artifactId>test</artifactId>
        <version>0.1</version>
        <packaging>jar</packaging>
      
        <distributionManagement>
          <repository>
            <id>maven-core-it</id>
            <url>file:///${basedir}/repo</url>
          </repository>
        </distributionManagement>
      </project>
      

      causes the following model errors:

      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     Resolving expression: '${groupId}': Detected the following recursive expression cycle: [groupId] -> [Help 2]
      [ERROR]     'groupId' with value '${groupId}' does not match a valid id pattern. @ line 25, column 12
      

      Note the excessive repetition of the groupId related cycle although this expression actually appears only once in the POM.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: