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

A maven project can't fetch its parent when its repository is configured with an interpolated variable

    XMLWordPrintableJSON

Details

    Description

      Maven seems to be unable to fetch its parent pom.xml on a remote repository when it uses an interpolated variable in its repositories configuration.

      However, if no parent is declared in the same project pom.xml and the parent is declared as a dependency instead, then it is downloaded. 

      If we have both the parent configured and declared as a dependency, the same problem occurs : Maven can't download the parent from the remote repository

      Lastly, if we replace the variable by its value, there are no problem downloading the parent pom.xml

      The problem occurs whether the variable is a property defined in the pom.xml or is an environment variable

       

      It seems maven can only interpolate a variable value in a pom.xml after the parent has been resolved

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bosion Arnaud Rivero
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: