- Download the maven source code from http://www.apache.org/dyn/closer.cgi?path=/maven/binaries/apache-maven-2.2.1-bin.zip
- Unzip above file to a folder (e.g., Maven).
- Need JAVA_HOME in your environment before running maven.
- Set the Maven/bin in your path.
- Type "mvn --version" for testing, the output are showed in below:
- C:\Users\Stanley_PC>mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_24
Java home: C:\Program Files\Java\jdk1.6.0_24\jre
Default locale: zh_TW, platform encoding: MS950
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows
For Eclipse Plug-in
- Use the Eclipse Marketplace menu and input "Maven", you can get the following screen.
- Install the "m2eclipse-wtp: Maven Integration for Eclipse WTP" and "Maven Integration for Eclipse", where WTP package for web project.
- Now, you can new a Maven project.
No comments:
Post a Comment