You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcin Kuthan (JIRA)" <ji...@codehaus.org> on 2008/06/13 08:27:13 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=138494#action_138494 ] 

Marcin Kuthan commented on MNG-3588:
------------------------------------

The parameter ${settings.localRepository} doesn't work as well. The parameter inside profile is simply ignored.

It seems that command "mvn -Dsettings.localRepository=C:\alternative_repo_location package" also doesn't work, all artifacts are stored under default location.

I don't know how to prepare regression test for this case. Where can I find any maven regression testing manual?

> ${maven.repo.local} in settings.xml doesn't work.
> -------------------------------------------------
>
>                 Key: MNG-3588
>                 URL: http://jira.codehaus.org/browse/MNG-3588
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>            Reporter: Marcin Kuthan
>            Priority: Minor
>             Fix For: 2.0.x
>
>
> 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