I'm trying to create my Maven 1 deployment process with Maven 2. I think
I'm almost there. The end result is to be a tarball with the project jar
and all dependencies in a lib directory and a scripts directory which has
the startup script that calls a generated file that sets the
works on spaced paths in WinXP...
looks like we will need to add a note to Windows install instructions
that in case of weirdness, explicitly set M2_HOME.
- Brett
On 4/17/05, baleineca <[EMAIL PROTECTED]> wrote:
-
To unsubscrib
Just noticed my previous test was run from maven 1 install path, but
it's the same from maven 2 install path:
C:\Program Files\maven-2.0-alpha-1>test.bat
~dps0: C:\PROGRA~1\MAVEN-~1.0-A\bin\test.bat
~dp0: C:\Program Files\maven-2.0-alpha-1\bin\
~s0: C:\PROGRA~1\MAVEN-~1.0-A\bin\test.bat
~0: test.
Even more strange... Seems like the same batch file misbehaves when run
from a path that contains space!
I got the correct output from test.bat when tested from a path with no
spaces. I even added the following lines to test.bat:
if "%OS%"=="Windows_NT" set M2_HOME=%~dps0..
echo M2_HOME = %M2_
Can you try this on win2000? Create test.bat:
@echo off
echo ~dps0: %~dps0
echo ~dp0: %~dp0
echo ~s0: %~s0
echo ~0: %~0
echo ~dps0\..: %~dps0\..
echo ~dps0..: %~dps0..
Then run: "cmd /C test.bat"
I get...
~dps0: c:\home\Brett\
~dp0: c:\home\Brett\
~s0: c:\home\Brett\test.bat
~0: test.bat
~dps0\
I'm no batch file expert either and I thought it's was strange, but
here's what happens with the original line `if "%OS%"=="Windows_NT" SET
M2_HOME=%~dps0\..`:
M2_HOME = C:\PROGRA~1\MAVEN-~1.0-A\bin\m2.bat\..
which points to bin.
I also thought it was supposed to return the directory, but it's
Hi,
On 4/17/05, baleineca <[EMAIL PROTECTED]> wrote:
> Change line 86 from:
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..
>
> to
>
> if "%OS%"=="Windows_NT" SET M2_HOME=%~dps0\..\\..
>
> (need double \\ to escape)
Can you explain this to me? I'm no .bat file wizard, but I thought I
tested th
I cant just type anything, I must put in the full path... or drag/drop
THEN append the command afterwards.
-Original Message-
From: baleineca [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 10:54 PM
To: Maven Users List
Subject: Re: Need of serious help (almost there!)
I am no
Nope, I cant just type anything, I must put in the full path... or drag/drop
THEN append the command afterwards.
-Original Message-
From: baleineca [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 10:54 PM
To: Maven Users List
Subject: Re: Need of serious help (almost there!)
I
I am not yet using maven 2 (still on maven 1.0.2), so I am not sure 100%
but if maven 2 bin is in your windows path, it seems you should try
typing "m2 -v" instead of "maven -v".
Dave "The Gerb" wrote:
Many thanks to Daniel Or and Mykel Alvis. Both of you guys hit the nail on
the head! It was t
Many thanks to Daniel Or and Mykel Alvis. Both of you guys hit the nail on
the head! It was the spaces in the path.
Though I still cant just type "maven -v" at the command prompt... I have to
use the trick shown me by Patrick Roumanoff (thanks Pat, been using
computers for many many moons... neve
11 matches
Mail list logo