Simple Maven Workspace Setup

Simple Maven Workspace Setup
GerryGao, 9 March 2009( created 6 March 2009)
  • not tagging

Install JDK 6

Need infra's help.
//dsti-server2/HiPort/Install Files/jdk-6u10-windows-i586-p.exe

Install Maven

  1. Copy //dsti-server2/HiPort/Install Files/apache-maven-2.0.9-bin.zip to a local folder.
  2. Unzip it into a folder, e.g. D:/bin/apache-maven-2.0.9
  3. Create environment variable M2_HOME with Maven's folder, e.g. D:/bin/apache-maven-2.0.9
  4. Add %M2_HOME%/bin to PATH environment variable.
  5. Test mvn -version in a command line console. Make sure you get
Maven version: 2.0.9
Java version: 1.6.0_10
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Map Maven Repository

Map //dsti-server2/M2_REPO as your M: driver. (My Computer -> Tools -> Mapping Network Drivers...)

Configure Maven

Copy //dsti-server2/M2_REPO/settings.xml to your % M2_HOME%/conf to override the default one.
Open settings.xml and change the <localRepository>D:/dev/m2repo</localRepository> to the Maven2 repository folder you like.

Install Subversion Client

TODO:

Check out Helloworld

Use TortoiseSVN to checkout http://172.16.5.12/svn/hiportfolio/trunk/Training/src/helloworld1

Fully Build

Within local helloworld1 folder, execute mvn clean install. You should get a BUILD SUCCESSFULLY.

Setup Eclipse

  1. Within local helloworld1 folder, execute mvn eclipse:eclipse. You should get a BUILD SUCCESSFULLY.
  2. Open Eclipse and use a proper folder as the workspace as you like.
  3. Add JDK 1.6.0 as the default JRE for this workspace.
  4. Add Classpath Variable M2_REPO pointing to your local Maven repository folder.
  5. Import the projects from helloworld1 folder.

Do your development work now!!!

Oracle Server

Hostname: dsti-server2/172.16.4.39
port: 1521
SID: XE
User: hiport_dev
Password: oracle

WebLogic Admin Console

http://dsti-server2:7001/console
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值