[Maven] GWT 프로젝트 만들기
JAVA/Maven / 2009. 2. 7. 22:13
Maven 을 이용하여 GWT, GWT Ext 프로젝트 환경을 구성해보겠습니다.
ㅁ Maven GWT Plugin
http://code.google.com/p/gwt-maven/
위의 플러그인 프로젝트의 도큐먼트를 참조하여 프로젝트를 생성합니다.
적당한 위치에서 아래와 같은 명령을 통해 Maven 프로젝트를 생성합니다.
Group ID 와 Artifact ID 는 적당한 값으로 설정합니다.
mvn archetype:create -DarchetypeGroupId=com.totsp.gwt
-DarchetypeArtifactId=maven-googlewebtoolkit2-archetype
-DarchetypeVersion=1.0.3
-DremoteRepositories=http://gwt-maven.googlecode.com/svn/trunk/mavenrepo
-DgroupId=[Group ID]
-DartifactId=[Artifact ID]
-DarchetypeArtifactId=maven-googlewebtoolkit2-archetype
-DarchetypeVersion=1.0.3
-DremoteRepositories=http://gwt-maven.googlecode.com/svn/trunk/mavenrepo
-DgroupId=[Group ID]
-DartifactId=[Artifact ID]
생성된 프로젝트의 구조는 아래와 같습니다.
생성된 폴더 바로 아래 pom.xml 이 있을 것입니다.
GWT Ext 에 대한 설정을 추가합니다. 기본 주소에서는 GWT Ext 라이브러리를 받을 수 없어 jboss 쪽에서 받습니다.
01 | ... |
02 |
03 | < repositories > |
04 | < repository > |
05 | < id >gwt-maven</ id > |
07 | </ repository > |
08 | < repository > |
09 | < id >repository.jboss.org</ id > |
10 | < url >http://repository.jboss.org/maven2</ url > |
11 | </ repository > |
12 | </ repositories > |
13 |
14 | ... |
15 |
16 | < dependencies > |
17 |
18 | ... |
19 |
20 | < dependency > |
21 | < groupId >com.gwtext</ groupId > |
22 | < artifactId >gwtext</ artifactId > |
23 | < version >2.0.5</ version > |
24 | </ dependency > |
25 |
26 | ... |
27 |
28 | </ dependencies > |
29 |
30 | ... |
이클립스 프로젝트로 변환합니다.
mvn eclipse:eclipse
BUILD SUCCESSFUL 입니다.
일단은 만들었으니... 그담에는 쫌 이따가 ㅋㅋㅋ