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

Jason van Zyl closed MNG-5929.
------------------------------
    Resolution: Duplicate
      Assignee: Jason van Zyl

> Allow mirrors to be set through settings.xml profiles
> -----------------------------------------------------
>
>                 Key: MNG-5929
>                 URL: https://issues.apache.org/jira/browse/MNG-5929
>             Project: Maven
>          Issue Type: Improvement
>          Components: Settings
>            Reporter: Roy Teeuwen
>            Assignee: Jason van Zyl
>
> Currently I am working for 3 customers with all three their own internal 
> repository. This means that they use the following mirror settings:
> <mirror>
>             <id>mirror</id>
>             <url>mirrorUrl</url>
>             <mirrorOf>*</mirrorOf>
> </mirror>
> I have now made three profiles for each company, allowing me to use one 
> settings file.
> I made a bash script where I can set 
> MAVEN_OPTS=-DsettingsProfile=customerName and then use this variable for the 
> activation of the profiles. 
> The only pitfall is that I can't do the same for the mirror, seeing as this 
> is not an allowed element inside the profiles. So it would be very nice if 
> this could be improved to allow the mirror element in the profiles section.
> (Another solution would be to return the -Dapache.user_settings=settingsfile, 
> but this is sadly dropped from maven 3. Using the -s is not an option seeing 
> as this won't be used in spawned maven processes from the main maven proces.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to