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

Reply via email to