8907
|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
4 |
|
5 <!-- POM file generated with GWT webAppCreator --> |
|
6 <modelVersion>4.0.0</modelVersion> |
|
7 <groupId>org.dive4elements.river</groupId> |
|
8 <artifactId>gwt-client</artifactId> |
|
9 <packaging>war</packaging> |
|
10 <version>1.0-SNAPSHOT</version> |
|
11 <name>org.dive4elements.river.client</name> |
|
12 |
|
13 <properties> |
|
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
15 <!-- Convenience property to set the GWT version --> |
|
16 <gwtVersion>2.4.0</gwtVersion> |
|
17 <!-- GWT needs at least java 1.5 --> |
|
18 <maven.compiler.source>1.6</maven.compiler.source> |
|
19 <maven.compiler.target>1.6</maven.compiler.target> |
|
20 </properties> |
|
21 |
|
22 <dependencies> |
|
23 <dependency> |
|
24 <groupId>com.google.gwt</groupId> |
|
25 <artifactId>gwt-servlet</artifactId> |
|
26 <version>${gwtVersion}</version> |
|
27 <scope>runtime</scope> |
|
28 </dependency> |
|
29 <dependency> |
|
30 <groupId>com.google.gwt</groupId> |
|
31 <artifactId>gwt-user</artifactId> |
|
32 <version>${gwtVersion}</version> |
|
33 <scope>provided</scope> |
|
34 </dependency> |
|
35 |
|
36 <!-- The following probably does not work. In that case |
|
37 take a look at http://www.smartclient.com/builds/SmartGWT/ |
|
38 select a recent version and install it manually to fullfill |
|
39 the smartgwt dependency: |
|
40 |
|
41 mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT \ |
|
42 -Dlicense=LGPL -DbuildNumber=4.1p -DbuildDate=2014-11-19 |
|
43 |
|
44 As patch builds for smartgwt do have regressions and are |
|
45 regulararly removed from their repository we use a specific |
|
46 version here that is known to work for us. |
|
47 |
|
48 "Theoretically" any smartgwt version > 4.1 should do. |
|
49 --> |
|
50 <dependency> |
|
51 <groupId>com.isomorphic.smartgwt.lgpl</groupId> |
|
52 <artifactId>smartgwt-lgpl</artifactId> |
|
53 <version>4.1-p20141119</version> |
|
54 </dependency> |
|
55 <dependency> |
|
56 <groupId>org.dive4elements</groupId> |
|
57 <artifactId>artifacts-common</artifactId> |
|
58 <version>1.0-SNAPSHOT</version> |
|
59 </dependency> |
|
60 <dependency> |
|
61 <groupId>org.dive4elements</groupId> |
|
62 <artifactId>http-client</artifactId> |
|
63 <version>1.0-SNAPSHOT</version> |
|
64 </dependency> |
|
65 <dependency> |
|
66 <groupId>net.sf.opencsv</groupId> |
|
67 <artifactId>opencsv</artifactId> |
|
68 <version>2.0</version> |
|
69 </dependency> |
|
70 <dependency> |
|
71 <groupId>junit</groupId> |
|
72 <artifactId>junit</artifactId> |
|
73 <version>4.4</version> |
|
74 <scope>test</scope> |
|
75 </dependency> |
|
76 <dependency> |
|
77 <groupId>commons-lang</groupId> |
|
78 <artifactId>commons-lang</artifactId> |
|
79 <version>2.6</version> |
|
80 </dependency> |
|
81 <dependency> |
|
82 <groupId>commons-fileupload</groupId> |
|
83 <artifactId>commons-fileupload</artifactId> |
|
84 <version>1.2.1</version> |
|
85 </dependency> |
|
86 <dependency> |
|
87 <groupId>org.gwtopenmaps.openlayers</groupId> |
|
88 <artifactId>gwt-openlayers-client</artifactId> |
|
89 <version>0.6</version> |
|
90 </dependency> |
|
91 <dependency> |
|
92 <groupId>commons-httpclient</groupId> |
|
93 <artifactId>commons-httpclient</artifactId> |
|
94 <version>3.1</version> |
|
95 </dependency> |
|
96 <dependency> |
|
97 <groupId>org.apache.httpcomponents</groupId> |
|
98 <artifactId>httpclient</artifactId> |
|
99 <version>4.2</version> |
|
100 </dependency> |
|
101 <dependency> |
|
102 <groupId>log4j</groupId> |
|
103 <artifactId>log4j</artifactId> |
|
104 <version>1.2.14</version> |
|
105 </dependency> |
|
106 <dependency> |
|
107 <groupId>org.mapfish.print</groupId> |
|
108 <artifactId>print-lib</artifactId> |
|
109 <version>1.2.0</version> |
|
110 </dependency> |
|
111 <dependency> |
|
112 <groupId>org.jdom</groupId> |
|
113 <artifactId>jdom</artifactId> |
|
114 <version>1.1.3</version> |
|
115 </dependency> |
|
116 <dependency> |
|
117 <groupId>commons-io</groupId> |
|
118 <artifactId>commons-io</artifactId> |
|
119 <version>2.2</version> |
|
120 </dependency> |
|
121 <dependency> |
|
122 <groupId>commons-codec</groupId> |
|
123 <artifactId>commons-codec</artifactId> |
|
124 <version>1.4</version> |
|
125 </dependency> |
|
126 </dependencies> |
|
127 |
|
128 <build> |
|
129 <!-- Generate compiled stuff in the folder used for developing mode --> |
|
130 <outputDirectory>target/www/WEB-INF/classes</outputDirectory> |
|
131 |
|
132 <plugins> |
|
133 |
|
134 <!-- GWT Maven Plugin--> |
|
135 <plugin> |
|
136 <groupId>org.codehaus.mojo</groupId> |
|
137 <artifactId>gwt-maven-plugin</artifactId> |
|
138 <version>${gwtVersion}</version> |
|
139 <dependencies> |
|
140 <dependency> |
|
141 <groupId>com.google.gwt</groupId> |
|
142 <artifactId>gwt-user</artifactId> |
|
143 <version>${gwtVersion}</version> |
|
144 </dependency> |
|
145 <dependency> |
|
146 <groupId>com.google.gwt</groupId> |
|
147 <artifactId>gwt-dev</artifactId> |
|
148 <version>${gwtVersion}</version> |
|
149 </dependency> |
|
150 </dependencies> |
|
151 <!-- JS is only needed in the package phase, this speeds up testing --> |
|
152 <executions> |
|
153 <execution> |
|
154 <phase>prepare-package</phase> |
|
155 <goals> |
|
156 <goal>compile</goal> |
|
157 </goals> |
|
158 </execution> |
|
159 </executions> |
|
160 <!-- Plugin configuration. There are many available options, |
|
161 see gwt-maven-plugin documentation at codehaus.org --> |
|
162 <configuration> |
|
163 <!-- URL that should be automatically opened in the GWT shell (gwt:run). --> |
|
164 <runTarget>FLYS.html</runTarget> |
|
165 <!-- Location of the develop-mode web application structure (gwt:run). --> |
|
166 <hostedWebapp>target/www</hostedWebapp> |
|
167 <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) --> |
|
168 <soyc>true</soyc> |
|
169 </configuration> |
|
170 </plugin> |
|
171 |
|
172 <!-- Add source folders to test classpath in order to run gwt-tests as normal junit-tests --> |
|
173 <plugin> |
|
174 <artifactId>maven-surefire-plugin</artifactId> |
|
175 <configuration> |
|
176 <additionalClasspathElements> |
|
177 <additionalClasspathElement>${project.build.sourceDirectory}</additionalClasspathElement> |
|
178 <additionalClasspathElement>${project.build.testSourceDirectory}</additionalClasspathElement> |
|
179 </additionalClasspathElements> |
|
180 <useManifestOnlyJar>false</useManifestOnlyJar> |
|
181 <forkMode>always</forkMode> |
|
182 |
|
183 <!-- Folder for generated testing stuff --> |
|
184 <systemProperties> |
|
185 <property> |
|
186 <name>gwt.args</name> |
|
187 <value>-out target/www</value> |
|
188 </property> |
|
189 </systemProperties> |
|
190 </configuration> |
|
191 </plugin> |
|
192 |
|
193 <!-- Copy static web files before executing gwt:run --> |
|
194 <plugin> |
|
195 <artifactId>maven-resources-plugin</artifactId> |
|
196 <executions> |
|
197 <execution> |
|
198 <phase>compile</phase> |
|
199 <goals> |
|
200 <goal>copy-resources</goal> |
|
201 </goals> |
|
202 <configuration> |
|
203 <outputDirectory>target/www</outputDirectory> |
|
204 <resources> |
|
205 <resource> |
|
206 <directory>src/main/webapp</directory> |
|
207 </resource> |
|
208 </resources> |
|
209 </configuration> |
|
210 </execution> |
|
211 </executions> |
|
212 </plugin> |
|
213 |
|
214 <!-- Delete gwt generated stuff --> |
|
215 <plugin> |
|
216 <artifactId>maven-clean-plugin</artifactId> |
|
217 <configuration> |
|
218 <filesets> |
|
219 <fileset><directory>src/main/webapp/flys</directory></fileset> |
|
220 <fileset><directory>src/main/webapp/WEB-INF/classes</directory></fileset> |
|
221 <fileset><directory>tomcat</directory></fileset> |
|
222 <fileset><directory>www-test</directory></fileset> |
|
223 <fileset><directory>.gwt-tmp</directory></fileset> |
|
224 </filesets> |
|
225 </configuration> |
|
226 </plugin> |
|
227 <!-- |
|
228 <plugin> |
|
229 <groupId>org.apache.maven.plugins</groupId> |
|
230 <artifactId>maven-checkstyle-plugin</artifactId> |
|
231 <version>3.0.0</version> |
|
232 <configuration> |
|
233 <configLocation>../checkstyle.xml</configLocation> |
|
234 <encoding>UTF-8</encoding> |
|
235 </configuration> |
|
236 <executions> |
|
237 <execution> |
|
238 <id>validate</id> |
|
239 <phase>validate</phase> |
|
240 <configuration> |
|
241 <consoleOutput>true</consoleOutput> |
|
242 <failsOnError>true</failsOnError> |
|
243 </configuration> |
|
244 <goals> |
|
245 <goal>check</goal> |
|
246 </goals> |
|
247 </execution> |
|
248 </executions> |
|
249 </plugin> |
|
250 --> |
|
251 |
|
252 </plugins> |
|
253 </build> |
|
254 <repositories> |
|
255 <repository> |
|
256 <id>com.smartgwt</id> |
|
257 <name>SmartGWT</name> |
|
258 <url>http://www.smartclient.com/maven2</url> |
|
259 </repository> |
|
260 <repository> |
|
261 <id>osgeo</id> |
|
262 <name>Open Source Geospatial Foundation Repository</name> |
|
263 <url>http://download.osgeo.org/webdav/geotools/</url> |
|
264 </repository> |
|
265 </repositories> |
|
266 </project> |