Maven 2 & 3

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.8
  • Component/s: Settings
  • Labels:
    None
  • Environment:
    Windows XP
    Maven 2.0.4
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

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.

Issue Links

Activity

Hide
Milos Kleint added a comment -

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);

Show
Milos Kleint added a comment - 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);
Hide
Milos Kleint added a comment -
Show
Milos Kleint added a comment - it's MEVENIDE-449, not MNG-449
Hide
Herve Boutemy added a comment -

fixed in MNG-2254

Show
Herve Boutemy added a comment - fixed in MNG-2254

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: