Ram,
I was trying to build everything, I went into the root of the Maven 2
source distribution and executed "bootstrap.bat". The steps were as
follows:
cd /d C:\tmp\maven-2.0.9-src\maven-2.0.9-src
set M2_HOME=c:\apache-maven-2.0.9
set PATH=%M2_HOME%\bin;%PATH%
bootstrap.bat
The documentation I followed is listed at
http://maven.apache.org/guides/development/guide-building-m2.html, and I
was using the section "Building Maven 2.0 Without Maven Installed".
Here is a print out of the relevant environment variables
JAVA_HOME=c:\Program Files\Java\jdk1.5.0_13
M2_HOME=c:\tmp\apache-maven-2.0.9
-----Original Message-----
From: RAM [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2008 4:11 AM
To: Maven Users List
Subject: Re: Building Maven2
The error message is little bit confusing :"Null Pointer Exception in
thread
main". What are you trying to build?
I did the following setup and its working fine for me:
M2_HOME = D:\apache-maven-2.0.9
JAVA_HOME = {Here the *JDK* Path] Remember Maven doesnt work properly
with
JRE
PATH: %M2_HOME%/bin
Just run mvn --version and we are good to go.
If you are getting the version printed as 2.0.9, its correctly
installed.
Also, if you can forward the apache link you are talking about (where
you
got the example), I can look into that.
Thanks & Regards,
Ram
On 6/12/08, Michael Delaney <[EMAIL PROTECTED]> wrote:
>
> All,
>
>
>
> I am trying to build Maven 2.0.9 from the source, as found on the
Apache
> site. I went through the necessary steps of setting M2_HOME to a valid
> name (M2_HOME=c:\tmp\apache-maven-2.0.9) and adding M2_HOME to my
> windows path (PATH=%M2_HOME%\bin;%PATH%) as per the documentation.
> However, when I try to build I get an error. This is my first time
> trying to build Maven2 so it's possible I did something stupid but I
> don't know what.
>
>
>
> Can anyone help shed some light on this?
>
>
>
> [ Command Output ]
>
> Building project in
C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven
>
> ------------------------------------------------------------------
>
> Cleaning C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven\target...
>
> Compiling sources ...
>
> Packaging resources ...
>
> Packaging
>
C:\tmp\maven-2.0.9-src\maven-2.0.9-src\apache-maven\target\apache-maven.
> jar ...
>
> ------------------------------------------------------------------
>
> Exception in thread "main" java.lang.NullPointerException
>
> at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.createInstallati
> on(BootstrapInstaller.java:254)
>
> at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.run(BootstrapIns
> taller.java:136)
>
> at
>
org.apache.maven.bootstrap.installer.BootstrapInstaller.main(BootstrapIn
> staller.java:91)
>
>
-----------------------------------------------------------------------
>
> BUILD FAILED
>
>
-----------------------------------------------------------------------
>
> C:\tmp\maven-2.0.9-src\maven-2.0.9-src>
>
>
>
> > Mike D.
>
>
--
Thanks
Ram
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]