1. 程式人生 > >linux 下面配置eclipse 與搭建maven 環境

linux 下面配置eclipse 與搭建maven 環境

大數據 hadoop

  • linux 下面配置eclipse 與搭建maven 環境

linux 下面配置eclipse與搭建 maven 環境

1.1 上傳安裝處理

    apache-maven-3.0.5-bin.tar.gz 
    repository.tar.gz
    eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz

1.2 配置maven 環境

  $ mkdir .mvn

技術分享圖片

  $tar -zxvf apache-maven-3.0.5-bin.tar.gz -C yangyang/

技術分享圖片

  $ vim .bash_profile

技術分享圖片

  $source .bash_profile
  $mvn -version

技術分享圖片

  $ tar -zxvf repository.tar.gz -C .mvn

技術分享圖片

  $cd yangyang/mvn/conf

  $cp -p setting.xml /home/hadoop/.mvn

技術分享圖片

2.2安裝配置eclipse (整個過程要聯網)

 $tar -zxvf eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz -C yangyang

技術分享圖片

    $ 打開一個console 終端
    $cd yangyang/eclipse 

技術分享圖片

    $./eclipse

技術分享圖片

技術分享圖片

點擊OK

技術分享圖片

關掉welcome

技術分享圖片

2.3配置maven 環境處理

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

2.4新建maven 工程

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

修改 pom.xml 文件

技術分享圖片

2.5新建source folder 目錄

技術分享圖片

技術分享圖片

2.6 配置build path

技術分享圖片

技術分享圖片

2.7 maven 配置包

技術分享圖片

linux 下面配置eclipse 與搭建maven 環境