Preparatory work
1, Maven 2 download http://maven.apache.org/download.html
I downloaded the Maven-2.0-bin.zip solution to configure the JDK and MAVEN environment variables according to the official document:
Unzip Maven-2.0.1-bin.zip to the directory your wish to install MAVEN 2.0
"Environment Variables" button, then editing the PATH variable in the user Variables. eg. "C:\Program Files\apache Software foundation\maven-2.0.1\bin";%PATH%
Java_home, eg. C:\Program files\java\jdk1.4.2_06
Run mvn--version To verify the it is correctly installed.
Then run in DOS
C:\Documents and Settings\administrator>mvn-version
Maven version:2.0
Show the version number is 2.0
Friends who have seen the JUnit in action may have an understanding of Maven 1, then a beta version. The book took an example, as if it were in the automating JUnit Chapter
Here's what Maven 1 is about. Maven 2 overrides maven 1. So maven 1 and Maven 2 have a lot in common, but they have a few major differences. You can discover the difference by using two versions.
Here maven is done, and then we start a new project