MavenEclipseWTP2

 Maven2와 Eclipse/WTP 함께쓰기 (2)

 

MavenEclipseWTP은 뭔가 삽스러웠다. 그래서 정석으로 파고들기 시도~

 

준비물

eclipse 3.0+ 설치

maven 2.0+설치 http://maven.apache.org

윈도의 시스템 PATH 등록

m2eclipse 플러그인 설치 http://m2eclipse.codehaus.org/update-dev/

m2wtp 플러그인 설치 http://m2wtp.googlecode.com/svn/trunk/kr.javanese.devtools.m2wtp.update

 

명령행(cmd)에서

  1. C:\workspace>mvn archetype:create -DgroupId=com.thinkfree.ajax -DartifactId=test -DarchetypeArtifactId=maven-archetype-webapp
  2. C:\workspace>cd test
  3. C:\workspace\test>mvn -Dwtpversion=1.5 eclipse:eclipse

 

이클립스에서

  1. File > Import > Existing Projects into Workspace > C:\workspace 선택 > test2 선택
  2. test 프로젝트 팝업메뉴 > Maven > Enable Dependency Management
  3. test 프로젝트 팝업메뉴 > Add M2WTP Builder
  4. test 프로젝트 팝업메뉴 > Properties
    1. Project Facets > Modify > Java1.4 를 5.0 또는 6.0으로 변경
    2. Java Build Path > Libraries >  Maven2 Dependencies, M2_REPO/...junit... 삭제
  5.   test 프로젝트(또는 그 아래 pom.xml) 팝업메뉴 > Add Dependency(또는 직접 pom.xml 편집)

 

삽질은 계속되어야 한다... 주욱~

 

TBW

 

Back