You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Artur Śmiejowski <ar...@fargo.pl> on 2008/07/11 11:53:33 UTC
Ampersand Problem
Halo!
Maven don't work when In Windows Vista user has ampersand in the name for
example username=Tom&Jerry. Windows allows usernames like this, but Maven
treat ampersand in the name of users main folder as a part of some url (?)
or something . and cannot get path properly. Windows do not allow to change
username with all user's foldernames.
Is it Maven bug? Maybe there is some solution.
Please help!
I do not want to change my username to use Maven.
Greetings.
Re: Ampersand Problem
Posted by Kamil Demecki <sk...@gmail.com>.
2008/7/11 Artur Śmiejowski <ar...@fargo.pl>:
> Halo!
>
>
>
> Maven don't work when In Windows Vista user has ampersand in the name for
> example username=Tom&Jerry. Windows allows usernames like this, but Maven
> treat ampersand in the name of users main folder as a part of some url (?)
> or something . and cannot get path properly. Windows do not allow to change
> username with all user's foldernames.
>
>
>
> Is it Maven bug? Maybe there is some solution.
>
>
>
> Please help!
>
>
>
> I do not want to change my username to use Maven.
>
>
>
> Greetings.
>
>
>
Maybe you should try using maven installation per project (preferred by me)
. Then you can install M2 in C:\ProjectName\M2 and copy your settingx.xml to
M2_HOME/conf. Start up with some system environemnt will be helpfull:
C:\ProjectName\SetEnvProjectName.bat
-------------------------------------
set JAVA_HOME=C:\ProjectName\Jdk5
set M2_HOME=C:\ProjectName\M2
set JBOSS_HOME=C:\ProjectName\jboss
set TNS_ADMIN=C:\ProjectName\instantclient
set NLS_LANG=POLISH_POLAND.EE8MSWIN1250
set
PATH=%PATH%;C:\ProjectName\M2\bin;C:\ProjectName\instantclient;C:\Var\Subversion\bin;
-------------------------------------
C:\ProjectName\CmdProjectName.bat
----------------------------------------------------------
call SetEnvProjectName.bat
cmd
----------------------------------------------------------
C:\ProjectName\EclipseProjectName.bat
-------------------------------------------------------------
call SetEnvProjectName.bat
start /B Eclipse\eclipse.exe
-------------------------------------------------------------
I dont know if %USERPROFILE% is taken in that configuration (and your
profile with &) because global configuration are first taken.
--
Kamil Demecki
Re: Ampersand Problem
Posted by Kamil Demecki <sk...@gmail.com>.
2008/7/11 Artur Śmiejowski <ar...@fargo.pl>:
> Halo!
>
>
>
> Maven don't work when In Windows Vista user has ampersand in the name for
> example username=Tom&Jerry. Windows allows usernames like this, but Maven
> treat ampersand in the name of users main folder as a part of some url (?)
> or something . and cannot get path properly. Windows do not allow to change
> username with all user's foldernames.
>
>
Additional I am some wondered that M2 doesn't use system environment to
locate settings.xml like MAVEN_HOME_LOCAL in Maven 1.x. Localization
settings,xml in user directory is inflexible in many configurations on
computer developer.
--
Kamil Demecki