Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-195

Fast Build Configuration and mirrors in local settings.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.2.2
    • None
    • mvn 3.3.3, os win 7

    Description

      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:

                      <configuration>
      
                          <settingsFile>src/it/settings.xml</settingsFile>
                          <mergeUserSettings>true</mergeUserSettings>
      
                      </configuration>
      

      and in my local ~/.m2/settings.xml I have:

          <mirrors>
              <mirror>
                  <id>mirrorId</id>
                  <name>Public Mirrors</name>
                  <url>url_to_my_mirror</url>
                  <mirrorOf>*,!repo1,!repo2</mirrorOf>
              </mirror>
          </mirrors>
      

      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.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              sjaranowski Slawomir Jaranowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m