You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2010/01/12 19:44:55 UTC

[jira] Closed: (MNG-3588) ${maven.repo.local} in settings.xml doesn't work.

     [ http://jira.codehaus.org/browse/MNG-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-3588.
-----------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.2.x (to be reviewed))

that's not how the property is meant to work. IF you are trying to switch local repositories, you're best to use separate settings.xml files.

> ${maven.repo.local} in settings.xml doesn't work.
> -------------------------------------------------
>
>                 Key: MNG-3588
>                 URL: http://jira.codehaus.org/browse/MNG-3588
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>            Reporter: Marcin Kuthan
>            Priority: Minor
>
> I can't use ${maven.repo.local} parameter inside settings.xml file. The parameter is simply ignored.
> <settings>
>     <localRepository>c:\base_repo_location</localRepository>
>     <profiles>
>          <profile>
>             <id>my-profile</id>
>              <properties>
>                  <maven.repo.local>C:\alternative_repo_location</maven.repo.local>
>              </properties>     
>           </profile>
>     </profiles>
> </settings>
> When I run 
> "mvn -P my-profile package" 
> all downloaded artifacts are stored under "c:\base_repo_location" not "C:\alternative_repo_location".
> When I run 
> "mvn -Dmaven.repo.local=C:\alternative_repo_location package" package
> artifacts are stored under "C:\alternative_repo_location" as I expected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira