You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by William Simons <wi...@childrens.harvard.edu> on 2006/04/24 19:24:39 UTC

[M2] Problem running tests on Windows (white-space in repository?)

I have a maven build that runs fine on Linux and OSX but fails in Windows.
Part of the test includes starting an RMIRegistry and connecting to it.  The
test fails with an java.net.MalformedURLException "no protocol: and".  I've
done some searching and found a few similar bugs reported for surefire that
basically say that the problem is having the m2 repository in Documents and
Settings/user/.m2/repository.

Unfortunately, I couldn't locate a bug reported on this issue in JIRA. Is
there already a bug on this?  Better yet, is there a workaround?

Thanks,
Bill



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


Re: [M2] Problem running tests on Windows (white-space in repository?)

Posted by Kathryn Huxtable <kh...@ku.edu>.
I prefer on Windows to use forward slashes in file paths. Java and Windows
are both agnostic (except on command lines), so either can be used. That way
you don't have to escape a bunch of backslashes.

-- 
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas
+1 785 864 0420



On 4/24/06 3:40 PM, "Wendy Smoak" <ws...@gmail.com> wrote:

> On 4/24/06, William Simons <wi...@childrens.harvard.edu> wrote:
>> I've
>> done some searching and found a few similar bugs reported for surefire that
>> basically say that the problem is having the m2 repository in Documents and
>> Settings/user/.m2/repository.
>> 
>> Unfortunately, I couldn't locate a bug reported on this issue in JIRA. Is
>> there already a bug on this?  Better yet, is there a workaround?
> 
> If the problem is having the m2 repository in a directory name with
> spaces, then a simple workaround is to move it.  For example, mine is
> in c:\java\m2-repository.
> 
> In ~/.m2/settings.xml:
> <settings>
>     <localRepository>c:\\java\\m2-repository</localRepository>
>     ...
> </settings>
> 
> HTH,
> --
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


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


Re: [M2] Problem running tests on Windows (white-space in repository?)

Posted by Wendy Smoak <ws...@gmail.com>.
On 4/24/06, William Simons <wi...@childrens.harvard.edu> wrote:
> I've
> done some searching and found a few similar bugs reported for surefire that
> basically say that the problem is having the m2 repository in Documents and
> Settings/user/.m2/repository.
>
> Unfortunately, I couldn't locate a bug reported on this issue in JIRA. Is
> there already a bug on this?  Better yet, is there a workaround?

If the problem is having the m2 repository in a directory name with
spaces, then a simple workaround is to move it.  For example, mine is
in c:\java\m2-repository.

In ~/.m2/settings.xml:
<settings>
    <localRepository>c:\\java\\m2-repository</localRepository>
    ...
</settings>

HTH,
--
Wendy

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


Re: [M2] Problem running tests on Windows (white-space in repository?)

Posted by Thorsten Heit <th...@xtramind.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bill,

> I have a maven build that runs fine on Linux and OSX but fails in Windows.
> Part of the test includes starting an RMIRegistry and connecting to it.  The
> test fails with an java.net.MalformedURLException "no protocol: and".  I've
> done some searching and found a few similar bugs reported for surefire that
> basically say that the problem is having the m2 repository in Documents and
> Settings/user/.m2/repository.

A couple of weeks ago there was a discussion that RMI tests fail if
there are whitespace characters in the path name. As far as I remember
this is because of some quite old bugs still contained even in the
latest JDK; see also
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532

Does your code reside in such a directory? If yes, could you move it to
a different location that doesn't contain any whitespace in the paths
and check again?


HTH

Thorsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFETeRhQvObkgCcDe0RAuSvAKC6hU/SOYC2G82gyCDp6torkJMMzQCfTkNP
rhagQWgSJf9xGdeGfvUhoZc=
=z6Cm
-----END PGP SIGNATURE-----

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