Build an existing J2EE project on Windows XP SP2

I need to set up my Windows laptop to build an existing J2EE project, using maven. This J2EE project uses technology including Hibernate, maven, ANDROMDA, mySQL, JBoss, Design Pattern, and many other J2EE technologies.

First I download Maven and following instruction from the Maven download site.

To install on Windows 2000/XP

    1. Unzip maven-2.0.7-bin.zip to the directory you wish to install Maven 2.0.7. These instructions assume you chose C:Program FilesApache Software Foundationmaven-2.0.7
    2. Add the bin directory to your path, by opening up the system properties (WinKey + Pause), selecting the “Advanced” tab, and the “Environment Variables” button, then editing the PATH variable in the user variables. eg. “C:Program FilesApache Software Foundationmaven-2.0.7bin”;%PATH%In the same dialog, make sure that JAVA_HOME is set to the location of your JDK, eg. C:Program FilesJavajdk
    3. Run mvn --version to verify that it is correctly installed.

After installing maven 2.0.7, I continued on with building our project. But got this error:


C:MDADev>mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You must specify at least one goal. Try 'install'
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Aug 03 10:21:50 PDT 2007
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

So I went back to the original maven version: maven-1.0.2. I obtained maven-1.0.2.zip from Maven repository site. I also saved a copy here. Once downloaded, I unzipped maven-1.0.2.zip to C:Program FilesApache Software Foundationmaven-1.0.2, and changed PATH accordingly. But then I still got this error:


ERROR: MAVEN_HOME not found in your environment.
Please set the MAVEN_HOME variable in your environment to match the
location of the Maven installation

This error is easy to fix by adding MAVEN_HOME environment and set it to C:Program FilesApache Software Foundationmaven-1.0.2.

On with the build. this time, I got a different error:


C:MDADev>maven
__ __
| / | __ _Apache__ ___
| |/| / _` V / -_) ' ~ intelligent projects ~
|_| |___,_|_/___|_||_| v. 1.0.2

Attempting to download nekohtml-0.9.5.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/nekohtml/jars/nekohtml-0.9.5.jar
WARNING: Failed to download nekohtml-0.9.5.jar.
Attempting to download commons-jelly-tags-interaction-1.0.jar.

Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-interaction-1.0.jar

WARNING: Failed to download commons-jelly-tags-interaction-1.0.jar.
The build cannot continue because of the following unsatisfied dependencies:

nekohtml-0.9.5.jar
commons-jelly-tags-interaction-1.0.jar

Total time: 1 seconds
Finished at: Fri Aug 03 10:32:50 PDT 2007