jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-2918

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0.5
  • Fix Version/s: None
  • Component/s: Profiles
  • Labels:
    None
  • Complexity:
    Intermediate

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
....

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. XML File
    settings.xml
    02/Apr/07 7:13 AM
    1.0 kB
    Roman Alekseenkov

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-3099 Profiles ignored when working with non-projects (such as archetype:create)

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Roman Alekseenkov
Vote (2)
Watch (3)

Dates

  • Created:
    02/Apr/07 7:13 AM
    Updated:
    05/Jan/10 10:01 AM
    Resolved:
    05/Jan/10 10:01 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.