1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!--
3
3
pom.xml contains description of all artifacts that our application requires.
4
- Now we need only spring-web artifact, which contains all necessary Spring libraries.
4
+ We need spring-web artifact, which contains all necessary Spring libraries.
5
+ Now, we add GWT (gwt-servlet and gwt-user artifacts) and Log4J to our project.
5
6
-->
6
7
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
7
8
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
8
9
<modelVersion >4.0.0</modelVersion >
10
+
9
11
<groupId >hellogwt</groupId >
10
12
<artifactId >hellogwt</artifactId >
11
- <version >0.0.1-SNAPSHOT</version >
12
13
<packaging >war</packaging >
14
+ <version >0.0.1-SNAPSHOT</version >
13
15
<name >HelloGWT</name >
14
16
<description >Spring-GWT example</description >
15
17
<properties >
16
18
<spring .version>4.0.3.RELEASE</spring .version>
19
+ <spring4gwt .version>0.0.1</spring4gwt .version>
20
+ <spring4gwt .md5>640e1e3fc08f2e175cb52e7f922d47ad</spring4gwt .md5>
21
+ <!-- Convenience property to set the GWT version -->
22
+ <gwt .version>2.7.0</gwt .version>
23
+ <!-- Note: GWT needs at least java 1.6 -->
24
+ <maven .compiler.source>1.7</maven .compiler.source>
25
+ <maven .compiler.target>1.7</maven .compiler.target>
26
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
17
27
</properties >
28
+
18
29
<dependencies >
19
30
<!-- Spring -->
20
31
<dependency >
21
- <version >${spring.version} </version >
22
32
<groupId >org.springframework</groupId >
23
33
<artifactId >spring-web</artifactId >
34
+ <version >${spring.version} </version >
35
+ </dependency >
36
+ <!-- GWT -->
37
+ <dependency >
38
+ <groupId >com.google.gwt</groupId >
39
+ <artifactId >gwt-servlet</artifactId >
40
+ <version >${gwt.version} </version >
41
+ </dependency >
42
+ <dependency >
43
+ <groupId >com.google.gwt</groupId >
44
+ <artifactId >gwt-user</artifactId >
45
+ <version >${gwt.version} </version >
46
+ <type >jar</type >
24
47
</dependency >
25
48
</dependencies >
49
+
26
50
<build >
27
51
<finalName >hellogwt</finalName >
52
+ <plugins >
53
+ <!-- GWT Maven Plugin-->
54
+ <plugin >
55
+ <!-- http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html -->
56
+ <groupId >org.codehaus.mojo</groupId >
57
+ <artifactId >gwt-maven-plugin</artifactId >
58
+ <version >${gwt.version} </version >
59
+ <executions >
60
+ <execution >
61
+ <goals >
62
+ <goal >compile</goal >
63
+ <goal >test</goal >
64
+ </goals >
65
+ </execution >
66
+ </executions >
67
+ </plugin >
68
+ <!-- $HOME/.m2/settings.xml
69
+ <server>
70
+ <id>Tomcat6</id>
71
+ <username>tomcat</username>
72
+ <password>tomcat</password>
73
+ </server>
74
+ -->
75
+ <plugin >
76
+ <!-- http://tomcat.apache.org/maven-plugin-2.2/context-goals.html -->
77
+ <groupId >org.apache.tomcat.maven</groupId >
78
+ <artifactId >tomcat6-maven-plugin</artifactId >
79
+ <version >2.2</version >
80
+ <configuration >
81
+ <url >http://localhost:8080/manager/</url >
82
+ <server >Tomcat6</server >
83
+ <path >/hellogwt</path >
84
+ </configuration >
85
+ </plugin >
86
+ <!--
87
+ download-maven-plugin is used to download and cache other files
88
+ -->
89
+ <plugin >
90
+ <groupId >com.googlecode.maven-download-plugin</groupId >
91
+ <artifactId >download-maven-plugin</artifactId >
92
+ <version >1.2.1</version >
93
+ <executions >
94
+ <execution >
95
+ <id >install-spring4gwt</id >
96
+ <phase >process-resources</phase >
97
+ <goals >
98
+ <goal >wget</goal >
99
+ </goals >
100
+ <configuration >
101
+ <url >https://spring4gwt.googlecode.com/files/spring4gwt-${spring4gwt.version} .jar</url >
102
+ <unpack >false</unpack >
103
+ <outputDirectory >target/hellogwt/WEB-INF/lib/</outputDirectory >
104
+ <md5 >${spring4gwt.md5} </md5 >
105
+ </configuration >
106
+ </execution >
107
+ </executions >
108
+ </plugin >
109
+ </plugins >
28
110
</build >
29
- </project >
111
+ <reporting >
112
+ <plugins >
113
+ <plugin >
114
+ <groupId >org.apache.maven.plugins</groupId >
115
+ <artifactId >maven-checkstyle-plugin</artifactId >
116
+ <version >2.13</version >
117
+ <configuration >
118
+ <configLocation >config/sun_checks.xml</configLocation >
119
+ </configuration >
120
+ </plugin >
121
+ </plugins >
122
+ </reporting >
123
+ </project >
0 commit comments