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.

Reply via email to