ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages

问题:

I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands

  • export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then pressed Enter]
  • export M2=$M2_HOME/bin [Then pressed Enter]
  • export PATH=$M2:$PATH [Then pressed Enter]

After that I typed

mvn --version

and it displayed all the necessary information but after closing the terminal, again I typed the command mvn
--version

The program ‘mvn‘ can be found in the following packages:
 * maven
 * maven2
Try sudo apt-get install <selected-page>

解决方式例如以下http://askubuntu.com/questions/310059/ubuntu-adding-path-environment-variables

问题是在环境里面加入了PATH,可是须要

$source /etc/environment
然后mvn --vsersion
[email protected]:/usr/local$ mvn --version
Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T21:51:42+08:00)
Maven home: /usr/local/apache-maven-3.2.2
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"

ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages,布布扣,bubuko.com

ubuntu 安装maven提示出错 The program 'mvn' can be found in the following packages

时间: 2024-10-27 09:45:36

ubuntu 安装maven提示出错 The program &#39;mvn&#39; can be found in the following packages的相关文章

ubuntu 安装maven提示出错 The program &#39;mvn&#39; can be found in the following packages

问题: I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then pressed Enter] export M2=$M2_HOME/bin [Then pressed En

Ubuntu安装Maven(转)

原文地址:http://my.oschina.net/hongdengyan/blog/150472 一.环境说明: 操作系统:Ubuntu 14.10(64位) maven:apache-maven-3.2.2 安装maven前请先安装好jdk 二.下载 maven 下载链接:http://maven.apache.org/download.cgi 选择最新版本的maven安装包,我安装时最新安装包是apache-maven-3.2.2-bin.tar.gz. 下载保存文件的路径是:~/下载/

Ubuntu 安装 maven

安装maven的前提是已经装好了jdk 一. 下载 下载网址 http://maven.apache.org/download.cgi 根据需求下自己所需版本 二.解压 用工具复制到Linux文件夹opt下 终端输入解压命令 三.配置环境变量 输入命令 加入如下配置 保存退出 为了让刚刚设置的生效 输入命令 四.验证 输入命令 mvn -version 若成功,则如下所示

Ubuntu 安装 Maven/Nexus

Ubuntu maven Nexus安装 /////////////////////////////////////////////////////////////////////////////////////////// (一)系统环境设置 #切换到root用户 1.1安装SSH   apt-get install -yopenssh-server 1.2 允许root 远程登录 vim /etc/ssh/sshd_config PermitRootLogin  yes 重启SSHD Ps

ubuntu安装packet提示重复冲突问题

今天装个zip出现: dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.5_amd64.deb (--unpack): trying to overwrite '/usr/include/gnu', which is also in package libc6-dev-amd64 2.19-0ubuntu6.5Errors were encountered while proce

ubuntu安装maven

maven版本:apache-maven-3.5.0-bin.tar.gz 1.解压jdk:tar -zxvf jdk-8u144-linux-x64.tar.gz 2.配置环境变量: 1.打开文件:gedit ~/.bashrc 2.在文件最后输入: export M2_HOME=maven路径 export PATH=$M2_HOME/bin:$PATH 4.重启系统或  source .bashrc 5.检查java是否安装成功:mvn -version

Ubuntu安装PHP时候出错--xml2-config not found

在Ubuntu下接着安装php时候,在configure后,又出现错误提示:error: xml2-config not found. Please check your libxml2 installation. 这是由于系统缺少PHP所需的库文件导致的,根据提示,进行如下操作: sudo apt-get install libxml2(按Tab键) 将会看到如下信息: libxml2 libxml2-dev libxml2-headers libxml2-utils 这里需要安装的是libx

Ubuntu安装软件提示boot空间不足

用sudo apt-get install gitlab-ci-multi-runner安装应用都会出现"gzip: stdout: No space left on device"的问题. boot文件里面存放的是系统引导文件和内核的一些东西,一般空间是足够的,大家都知道linux内核一直在更新,跟新后,旧的内核就不在使用,但旧的内核文件还在boot里面,占据着空间,更新几次过后boot文件就会被占满,显示boot磁盘空间不足.这时为了更新需要将不用的内核文件删除,释放空间. 在终端

(八)ubuntu安装软件提示:Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

question: [email protected]:/usr/src/Linux-headers-3.5.0-23-generic$ sudo apt-get install cheese [sudo] password for ubuntu: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration di