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

SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.7
  • Component/s: Settings
  • Labels:
    None
  • Environment:
    Windows XP, Domain-Environment, Network User-Profile
  • Complexity:
    Intermediate
  • Patch Submitted:
    Yes

Description

I'm not sure if this is a bug or intended but the DefaultMavenSettingsBuilder converts paths like "\\server\username\.m2\settings.xml" to "<Current Drive>:\server\username\.m2\settings.xml". This prevented us from using the default user.home because our userprofiles are located on another server and are referenced by "
" network paths. It would've been quite complicated to change the user.home system property for all developers, so we fixed the problem by removing a regular expression that replaced double backslashes by only one, followed by calling "new File(path).getAbsolutePath()" which added the current drive letter to the path and converted it to a local path this way.

I don't know the reason for removing double backslashes from the beginning but at least i didn't recognize any problems with my changes yet. It would be nice if somebody could tell me what the regexp was intended for. I attached a patch to this posting and hope it helps!

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

Attachments

  1. File
    maven-settings-patch-PROPER.diff
    21/Nov/06 10:04 AM
    1 kB
    Daniel Bechler
  2. File
    patch.diff
    16/Nov/06 1:01 PM
    1 kB
    Daniel Bechler

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MNG-2580 UNC in MAVEN_HOME not working

  • 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.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-4700 Incorrect path to global-level plugin registry is formed when maven is started from UNC location

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Daniel Bechler added a comment - 21/Nov/06 10:04 AM

Ups, sorry. The first patch was not created properly. Please use the attached version (maven-settings-patch-PROPER.diff) instead.

Show
Daniel Bechler added a comment - 21/Nov/06 10:04 AM Ups, sorry. The first patch was not created properly. Please use the attached version (maven-settings-patch-PROPER.diff) instead.
Hide
Permalink
John Casey added a comment - 01/Jun/07 6:12 PM

Applied to 2.0.x branch; this fix doesn't apply to trunk.

Show
John Casey added a comment - 01/Jun/07 6:12 PM Applied to 2.0.x branch; this fix doesn't apply to trunk.

People

  • Assignee:
    John Casey
    Reporter:
    Daniel Bechler
Vote (0)
Watch (1)

Dates

  • Created:
    16/Nov/06 1:01 PM
    Updated:
    04/Jun/10 3:40 AM
    Resolved:
    01/Jun/07 6:12 PM
  • 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.