[ 
https://issues.apache.org/jira/browse/MSHARED-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated MSHARED-1414:
-------------------------------------
    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

{code}
<?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>
{code}

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)

  was:
In case your {{settings.xml}} uses interpolation 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

{code}
<?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>
{code}

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)


> Verifier.retrieveLocalRepo() does not support interpolation
> -----------------------------------------------------------
>
>                 Key: MSHARED-1414
>                 URL: https://issues.apache.org/jira/browse/MSHARED-1414
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-verifier
>    Affects Versions: maven-verifier-1.8.0
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: maven-verifier-2.0.0
>
>
> 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
> {code}
> <?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>
> {code}
> 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)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to