1. 程式人生 > >ubuntu 安裝maven提示出錯 The program 'mvn' can be found in the following packages

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

問題: 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 ex

Ubuntu 出現The program 'make' can be found in the following packages問題的解決方法

    今天執行make命令時,提示如下資訊:The program 'make' can be found in the following packages: * make * make-gui

the program javac can be found in the following packages ubuntu

主要是要解壓完成設定完路徑之後要記得設定: sudo update-alternatives –install /usr/bin/java java /usr/local/java/jdk1.7.

The program 'ninja' can be found in the following packages: * ninja * ninja-build

Ninja進行Android編譯時,如果遇到如標題中的問題,是因為找不到可執行命令導致,可以執行如下操作: cp prebuilts/build-tools/linux-x86/bin/ninja out/host/linux-x86/bin/ 其中:prebuilts/

the program 'java' can be found in the folowing packages

Ubuntu系統安裝jdk的問題,配置環境變數,並且立即生效之後報錯如下: The program 'java' can be found in the following packages: * default-jre * gcj-5-jre-hea

關於linux(CentOS)無法更新安裝軟體出錯的解決辦法(提示The program package-cleanup is found in the yum-utils package)

關於使用yum“The program package-cleanup is...”的解決辦法 在使用yum 時總是有提示資訊:  The program package-cleanup is found in the yum-utils package.    www.

mysql:The package 'mysql' can be found in following packages

問題描述:在ubuntu14.04-sever上原始碼安裝mysql(mysql-5.5.49)後,在shelll輸入mysql,出現“The package 'mysql' can be found in following packages...” 原因:沒有將mys

mac上 go-delve 安裝出現The specified item could not be found in the keychain 解決方法

mon pen 方法 rar spec hub 錯誤 sys lib 安裝go語言的編譯環境,在安裝到 delve時候出現如下錯誤: If reporting this issue please do so at (not Homebrew/brew or Hom

在keychain tool裡,Request a certificate時,出錯''The specified item could not be found in the keychain"

解決辦法是:restart keychain tool, and then 在keychain tool裡,不要選擇"keys" item,應該選擇"all items",and then try again! (make sure you see "Let me spec

多個jdk 變更 引起 tomcat插件 啟動不了 The JRE could not be found.Edit the server and change the JRE location.

變更 runtime win jdk nts nvi bsp 選擇 ould The JRE could not be found.Edit the server and change the JRE location. 在Windows->Preference

Talbot basically sweating the idea and can be happy for the repeat functionality

appear cas actual pear value edi fort lte finally Practically no one enjoyed more NHL hockey when compared with Cam Talbot last time. It

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'

xaml namespace 管理器 運行 alt component inf 資源管理器 class 場景:Visual Studio寫WPF項目時,想要生成XML文件,默認的WPF項目沒有引入System.XML這個dll。在【解決方案資源管理器——引用】右鍵添加了Sy

The JRE could not be found.Edit the server and change the JRE location.

之前更改了了一個較低的jdk的版本看了看一個專案的程式碼,不知所云,然後再改回來, 混亂之中只要啟動Tomcat就出現這種錯誤,還是無法找到JRE,最後如此解決: 在Windows->Preferences->Server->Runtime E

torch The “freeze_support()” line can be omitted if the programis not going to be frozen to produce

1.The “freeze_support()” line can be omitted if the programis not going to be frozen to produce an ex

How Blockchain can be used in the application of AI

Blockchain and artificial intelligence are highly converging technologies in the today's tech world. The combined use of these two technologies is offering

啟動報錯:The JRE could not be found. Edit the server and change the JRE location.

轉載內容,原文連結:http://blog.sina.com.cn/s/blog_7f865faf0100uvev.html Tomcat報錯: The JRE could not be found. Edit the server and change the JRE

rcp(外掛開發)Application "XXX" could not be found in the registry的解決辦法

這種情況基本都是配置在這個擴充套件點時 application="com.xxx.ro.studio.core.plugin.application"  這個application 所在的外掛名稱是否寫錯。  <product             applica

Ubuntu 16.04 LTS 安裝libvips出現”Package vips was not found in the pkg-config search path”

arp dir exp export ron per gconf 部署 director 使用libvips來操作圖像,libvips的部署參考一個Node.js工程:https://github.com/lovell/sharp 在MAC下安裝很順利,到Linux環境下(

Ubuntu安裝Maven

.tar.gz download -m sudo 查看 bin link usr maven Ubuntu安裝Maven 下載 http://maven.apache.org/download.cgi 找到Link列下的“apache-maven-3.5.4-bin.tar

安裝Centos 6.4提示找不到安裝檔案 The centos disc was not found in any of your drives.Please insert the centos d

【1】安裝Centos 6.4提示找不到安裝檔案 The centos disc was not found in any of your drives.Please insert the centos disc and press OK to retry  解決方法: 把CD