Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
maven-verifier-1.8.0
-
None
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:
- ${user.home}/.m2/tmp-repository (empty)
- Users/<my user home dir>/.m2/tmp-repository (containing the relevant local repo)
Attachments
Issue Links
- relates to
-
MSHARED-1147 Inconsistent for settingsFile argument - Maven local repository detecting
- Open
- links to