maven2:安装篇

下载maven2:http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.1.0-bin.tar.gz

Unix-based Operating Systems (Linux, Solaris and Mac OS X)

  1. Extract the distribution archive, i.e. apache-maven-2.0.10-bin.tar.gz to the directory you wish to install Maven 2.0.10. These instructions assume you chose /usr/local/apache-maven . The subdirectory apache-maven-2.0.10 will be created from the archive.
  2. In a command terminal, add the M2_HOME environment variable, e.g. export M2_HOME=/usr/local/apache-maven/apache-maven-2.0.10 .
  3. Add the M2 environment variable, e.g. export M2=$M2_HOME/bin .
  4. Optional : Add the MAVEN_OPTS environment variable to specify JVM properties, e.g. export MAVEN_OPTS="-Xms256m -Xmx512m" . This environment variable can be used to supply extra options to Maven.
  5. Add M2 environment variable to your path, e.g. export PATH=$M2:$PATH .
  6. Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.5.0_02 and that $JAVA_HOME/bin is in your PATH environment variable.
  7. Run mvn --version to verify that it is correctly installed.
安装subclipse

Subclipse 1.6.2 and 1.4.8 are now available for Eclipse 3.2+!

See the changelog for details. Existing Subclipse users should read the upgrade instructions for important information on changes you to need to make to your Eclipse preferences to see the new version in the update manager.

Subclipse 1.4.x includes and requires Subversion 1.5.x client features and working copy format.

Subclipse 1.6.x includes and requires Subversion 1.6.x client features and working copy format.

Links for 1.6.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.6.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.6.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240

Links for 1.4.x Release:
Changelog: http://subclipse.tigris.org/subclipse_1.4.x/changes.html
Eclipse update site URL: http://subclipse.tigris.org/update_1.4.x
Zipped downloads: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240


安装m2eclipse

Installation

You can install the Maven Integration for Eclipse by using the following update site from within Eclipse:

 http://m2eclipse.sonatype.org/update/

Stable development builds can be installed from separate update:

 http://m2eclipse.sonatype.org/update-dev/

 

 

更新索引文件

下载:http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip

下载完成后解压在$workspace/.metadata/.plugins/org.maven.ide.eclipse/nexus/central

$workspace是eclipse的工作目录

 

现在可以在eclipse中通过m2eclipse插件使用maven2了

你可能感兴趣的:(apache,eclipse,maven,linux,subversion)