baerrach wrote:
> 
> I've re-opened it.
> 
> I haven't had the chance to look in detail at the problem.
> 
> If there are enough steps to reproduce the problem then there is a
> better chance of it getting fixed.
> 

I've resolved my issue, and commented on the jira as follows:

OK, I have fixed my configuration ...
This is a windows problem only.
The problem was in my C:\Documents and Settings\uid\.m2\settings.xml

where I had defined a value for localRepository as follows:
<localRepository>/Documents and
Settings/uid/.m2/repository</localRepository>

This value happens to be similar to the default, although the default on
windows uses a C:\ prefix.
The C:\ prefix turned out to be rather important, as this is one of the ways
that java.io.Win32FileSystem determines whether the path is absolute or not,
the other way that is accepted as absolute is if the path startsWith a
double slash \\.
A single slash [how I had entered it] is not an absolute path, and this
caused IdeUtils.toRelativeAndFixSeparator() to duplicate the basedir on the
fileToAdd.
Further on in this method, the duplicated basedir is removed, and the result
is returned as a relative path, however due to the initial duplication, the
path that was returned was still absolute (even if Win32FileSystem doesn't
think so due to lack of C:\ or \\).

So the quick answer of how I fixed this was to comment out my
localRepository in my settings.xml and use the default generated value.

Cheers,
Neil.
-- 
View this message in context: 
http://www.nabble.com/Mvn-eclipse%3Aeclipse---strange-M2_REPO-settings-tp20541566p21553641.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to