Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2918

Active-by-default profiles from settings.xml are not active without pom.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.5
    • None
    • Profiles
    • None

    Description

      I use Archiva as Maven proxy, see Maven settings file attached for details. It contains only one profile that is active by default and contains repository URLs on our local area network. If I try to build a specific project, which has pom.xml of course, the profile is being activated and downloads appropriate artifacts from the proxy server. However, when I execute a specific plugin goal without any project, Maven downloads all required artifacts from its central repository, which indicated that the profile hasn't been activated. I'm not sure, whether it is a bug or not. Anyway, it would be good to have all traffic going through the proxy server.

      C:\Java>mvn archetype:create
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'archetype'.
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Maven Default Project
      [INFO] task-segment: [archetype:create] (aggregator-style)
      [INFO] ----------------------------------------------------------------------------
      Downloading: http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar
      ....

      Attachments

        1. settings.xml
          1.0 kB

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              ralekseenkov Roman Alekseenkov
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: