[
https://issues.apache.org/jira/browse/MINVOKER-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070354#comment-17070354
]
Slawomir Jaranowski commented on MINVOKER-195:
----------------------------------------------
I found resolve for this issue - if we use mirror in local settings and set
{{mergeUserSettings}} to {{true}} we have to use:
{code}
<mirrorOf>external:*,!repo1,!repo2</mirrorOf>
{code}
instead of:
{code}
<mirrorOf>*,!repo1,!repo2</mirrorOf>
{code}
According to https://maven.apache.org/guides/mini/guide-mirror-settings.html
> Fast Build Configuration and mirrors in local settings.xml
> ----------------------------------------------------------
>
> Key: MINVOKER-195
> URL: https://issues.apache.org/jira/browse/MINVOKER-195
> Project: Maven Invoker Plugin
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: mvn 3.3.3, os win 7
> Reporter: Slawomir Jaranowski
> Priority: Major
>
> I try use settings for fast build according to manual from site:
>
> [https://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html]
> My configuration for invoker plugin is:
> {code:java}
> <configuration>
> <settingsFile>src/it/settings.xml</settingsFile>
> <mergeUserSettings>true</mergeUserSettings>
> </configuration>
> {code}
> and in my local ~/.m2/settings.xml I have:
> {code:java}
> <mirrors>
> <mirror>
> <id>mirrorId</id>
> <name>Public Mirrors</name>
> <url>url_to_my_mirror</url>
> <mirrorOf>*,!repo1,!repo2</mirrorOf>
> </mirror>
> </mirrors>
> {code}
> Of course I have also defined repositories with id repo1, repo2 and so on in
> my settings.xml
> When invoker plugin merges settings from project with local setings result
> doesn't include correct configuration about mirrors.
> So in this case fast build configuration doesn't work.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)