You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Bechler (JIRA)" <ji...@codehaus.org> on 2006/11/16 20:02:31 UTC
[jira] Created: (MNG-2662) SettingsBuilder internally converts
network paths to local paths and is therefore preventing the use of network
profiles
SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles
------------------------------------------------------------------------------------------------------------------------
Key: MNG-2662
URL: http://jira.codehaus.org/browse/MNG-2662
Project: Maven 2
Issue Type: Bug
Components: Settings
Affects Versions: 2.0.4
Environment: Windows XP, Domain-Environment, Network User-Profile
Reporter: Daniel Bechler
Priority: Minor
Attachments: patch.diff
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!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-2662) SettingsBuilder internally converts
network paths to local paths and is therefore preventing the use of network
profiles
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MNG-2662.
---------------------------
Resolution: Fixed
Applied to 2.0.x branch; this fix doesn't apply to trunk.
> SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-2662
> URL: http://jira.codehaus.org/browse/MNG-2662
> Project: Maven 2
> Issue Type: Bug
> Components: Settings
> Affects Versions: 2.0.4
> Environment: Windows XP, Domain-Environment, Network User-Profile
> Reporter: Daniel Bechler
> Priority: Minor
> Attachments: maven-settings-patch-PROPER.diff, patch.diff
>
>
> 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!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-2662) SettingsBuilder internally converts
network paths to local paths and is therefore preventing the use of network
profiles
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-2662:
-----------------------------------
Fix Version/s: 2.0.7
Assignee: John Casey
> SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-2662
> URL: http://jira.codehaus.org/browse/MNG-2662
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Settings
> Affects Versions: 2.0.4
> Environment: Windows XP, Domain-Environment, Network User-Profile
> Reporter: Daniel Bechler
> Assignee: John Casey
> Priority: Minor
> Fix For: 2.0.7
>
> Attachments: maven-settings-patch-PROPER.diff, patch.diff
>
>
> 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!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-2662) SettingsBuilder internally converts
network paths to local paths and is therefore preventing the use of network
profiles
Posted by "Daniel Bechler (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2662?page=all ]
Daniel Bechler updated MNG-2662:
--------------------------------
Attachment: maven-settings-patch-PROPER.diff
Ups, sorry. The first patch was not created properly. Please use the attached version (maven-settings-patch-PROPER.diff) instead.
> SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-2662
> URL: http://jira.codehaus.org/browse/MNG-2662
> Project: Maven 2
> Issue Type: Bug
> Components: Settings
> Affects Versions: 2.0.4
> Environment: Windows XP, Domain-Environment, Network User-Profile
> Reporter: Daniel Bechler
> Priority: Minor
> Attachments: maven-settings-patch-PROPER.diff, patch.diff
>
>
> 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!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira