Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-1414

Verifier.retrieveLocalRepo() does not support interpolation

    XMLWordPrintableJSON

Details

    Description

      In case your settings.xml uses expressions for the value of the localRepository this is not correctly resolved in https://github.com/apache/maven-verifier/blob/48aaff7cdb0c9766e820ce74eb0d548ea79d265c/src/main/java/org/apache/maven/it/Verifier.java#L828.

      Having a settings.xml with the following contents

      <?xml version="1.0" encoding="UTF-8"?>
      <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
          <localRepository>${user.home}/.m2/tmp-repository</localRepository>
      </settings>
      

      leads to creation of the following directories inside the working directory:

      1. ${user.home}/.m2/tmp-repository (empty)
      2. Users/<my user home dir>/.m2/tmp-repository (containing the relevant local repo)

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: