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)
  • Sonar
  • SONAR-131

Sonar -> Maven Embedder doesn't use repo mirrors in settings.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None

Description

Hello,

There is a problem with the Maven Embedder 2.0.4. The Embedder doesn't use the settings.xml file (at least, not the <mirror> section). In my company we use Apache Archiva as our Maven2 proxy which is defined as a <mirrorOf> central in our settings.xml files. Because of the fact that Sonar uses the Maven2 embedder and we have to use our proxy, the mvn sonar goal fails because it can't download the necessary plugins. It tries to use a direct internet connection instead of the mirrors defined in the settings.xml file.

I think this is not only a problem when using mirrors, but also when defining a <proxy> in your settings.xml file.

If I'm correct, the Maven2 Eclipse plugin suffered from the same issue and they transitioned to the Maven Embedder 2.1-SNAPSHOT version.

See also: http://jira.public.thoughtworks.org/browse/CC-600;jsessionid=CC744AC3D62CCCFEEB3EF535E757EAD0?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Cédric Munger added a comment - 08/Jan/08 6:39 AM

Fixed by refactoring of the sonar plugin and creation of our own sonar maven embedder (ch.hortis.sonar.mvn.SonarMavenEmbedder) which is using the settings object provided by the maven runtime. This sonar embedder has also some modification to correctly configure the WagonManager used by the embedder, especially to setup the proxies and mirrors provided in the settings object.

Show
Cédric Munger added a comment - 08/Jan/08 6:39 AM Fixed by refactoring of the sonar plugin and creation of our own sonar maven embedder (ch.hortis.sonar.mvn.SonarMavenEmbedder) which is using the settings object provided by the maven runtime. This sonar embedder has also some modification to correctly configure the WagonManager used by the embedder, especially to setup the proxies and mirrors provided in the settings object.
Hide
Permalink
Olivier Dehon added a comment - 20/Jan/08 8:41 AM

I have a similar issue in 1.0.2, where the credentials defined for access to the repositories in the settings.xml are not passed by the Maven embedder (thereby connecting as "guest" to my archiva server). Hopefully this new version fixes that?

-Olivier

Show
Olivier Dehon added a comment - 20/Jan/08 8:41 AM I have a similar issue in 1.0.2, where the credentials defined for access to the repositories in the settings.xml are not passed by the Maven embedder (thereby connecting as "guest" to my archiva server). Hopefully this new version fixes that? -Olivier

People

  • Assignee:
    Cédric Munger
    Reporter:
    Cédric Munger
Vote (0)
Watch (0)

Dates

  • Created:
    08/Jan/08 6:34 AM
    Updated:
    20/Jan/08 8:41 AM
    Resolved:
    08/Jan/08 6:39 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.