ubuntu 安装 maven 及 eclipse 插件

一、Installing Maven 3.3.3 on Ubuntu 15.04

Prerequisite:- JDK 1.5 or above, JAVA_HOME set in environment variable.

Here are the steps to install Maven 3.3.3 on Ubuntu 15.04

1. Download Apache Maven 3.3.3 binary from repository using the following command

wget http://mirrors.sonic.net/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz

2. Unzip the binary with tar

tar -zxf apache-maven-3.3.3-bin.tar.gz

3. Move the application directory to /usr/local

sudo cp -R apache-maven-3.3.3 /usr/local
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn

5. Verifify mvn installation

mvn --version

Apache Maven 3.3.3 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/apache-maven-3.2.5
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-48-generic", arch: "amd64", family: "unix"

二、Install Maven Plugin for Eclipse

You may tried to install Maven plugin for eclipse and failed. The problem may be caused by the version. So to solve the problem, you can download a latest version of eclipse. The following shows how I install maven plugin for eclipse under Ubuntu. For Windows platform, it should be the same.

Download Eclipse Kepler

Download latest version of eclipse from: https://www.eclipse.org/downloads/.

Select “Eclipse IDE for Java EE Developers”.

Install Maven Eclipse Plugin

Go to http://www.eclipse.org/m2e/download/, and select the latest m2e release. The URL is http://download.eclipse.org/technology/m2e/releases.

Go to Eclipse “Help” -> “Install New Software …”, and put the correct url. It should looks like the following:

install-maven-eclipse-plugin
这里写图片描述
Click “Next” to complete.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值