Issue Details (XML | Word | Printable)

Key: MNG-2593
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Herve Boutemy
Reporter: Joe Cool
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2

Maven 2 stumbels upon non ASCII characters in the value of a <localRepository> value in the $HOME/.m2/settings.xml

Created: 06/Oct/06 08:31 AM   Updated: 17/Oct/07 04:17 PM
Component/s: Settings
Affects Version/s: 2.0.4
Fix Version/s: 2.0.8

Time Tracking:
Not Specified

Environment:
Windows XP
Maven 2.0.4
Issue Links:
Related
 

Complexity: Intermediate


 Description  « Hide
I use a German Windows XP and my home folder is "C:\Dokumente und Einstellungen\Wellhöfer".

When my "C:\Dokumente und Einstellungen\Wellhöfer\.m2\settings.xml" settings file contains the line

<localRepository>C:\Dokumente und Einstellungen\Wellhöfer\.m2</localRepository>

downloaded artifacts are not put under "C:\Dokumente und Einstellungen\Wellhöfer\.m2". Maven2 creates a folder "C:\Dokumente und Einstellungen\WellhÃfer\.m2" and puts the artifacts into this folder.

When I remove the line

<localRepository>C:\Dokumente und Einstellungen\Wellhöfer\.m2</localRepository>

from settings.xml the artifacts are put into the correct directory.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Milos Kleint added a comment - 06/Oct/06 10:29 AM
these two are related. (MNG-2593 and MNG-449).
I suppose when the file contains the <?xml version="1.0" encoding="ENCODING"?> header, the parser should use it. It seems to me that the current pull parsers read only UTF-8?

org.codehaus.plexus.util.xml.pull.MXParser:2651
// TODO reconcile with setInput encodingName
inputEncoding = newString(buf, encodingStart, encodingEnd - encodingStart);


Milos Kleint added a comment - 06/Oct/06 10:46 AM

Herve Boutemy added a comment - 17/Oct/07 04:17 PM
fixed in MNG-2254