Mercurial > hg > digilib
comparison webapp/pom.xml @ 1690:a0a8dbecb94c
Change web.xml setup to use WebServlet annotations.
Solves problem of having the correct web.xml when combining Servlets
via Maven profiles.
Works only with Servlet 3. For Servlet 2 you still need to patch
your own set of Servlets into web-2.4.xml.
You can still override Servlet mappings in web.xml if you want
(watch out for servlet-name).
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 26 Mar 2018 20:46:01 +0200 |
parents | 93b59a801711 |
children |
comparison
equal
deleted
inserted
replaced
1689:93b59a801711 | 1690:a0a8dbecb94c |
---|---|
256 <plugins> | 256 <plugins> |
257 <plugin> | 257 <plugin> |
258 <groupId>org.apache.maven.plugins</groupId> | 258 <groupId>org.apache.maven.plugins</groupId> |
259 <artifactId>maven-war-plugin</artifactId> | 259 <artifactId>maven-war-plugin</artifactId> |
260 <configuration> | 260 <configuration> |
261 <webXml>${basedir}/src/main/webapp/WEB-INF/web-3.0.xml</webXml> | |
262 <classifier>srv3</classifier> | 261 <classifier>srv3</classifier> |
263 </configuration> | 262 </configuration> |
264 </plugin> | 263 </plugin> |
265 </plugins> | 264 </plugins> |
266 </build> | 265 </build> |
285 <plugins> | 284 <plugins> |
286 <plugin> | 285 <plugin> |
287 <groupId>org.apache.maven.plugins</groupId> | 286 <groupId>org.apache.maven.plugins</groupId> |
288 <artifactId>maven-war-plugin</artifactId> | 287 <artifactId>maven-war-plugin</artifactId> |
289 <configuration> | 288 <configuration> |
290 <webXml>${basedir}/src/main/webapp/WEB-INF/web-pdf.xml</webXml> | |
291 <classifier>srv3pdf</classifier> | 289 <classifier>srv3pdf</classifier> |
292 </configuration> | 290 </configuration> |
293 </plugin> | 291 </plugin> |
294 </plugins> | 292 </plugins> |
295 </build> | 293 </build> |
326 <plugins> | 324 <plugins> |
327 <plugin> | 325 <plugin> |
328 <groupId>org.apache.maven.plugins</groupId> | 326 <groupId>org.apache.maven.plugins</groupId> |
329 <artifactId>maven-war-plugin</artifactId> | 327 <artifactId>maven-war-plugin</artifactId> |
330 <configuration> | 328 <configuration> |
331 <webXml>${basedir}/src/main/webapp/WEB-INF/web-iiif-pres.xml</webXml> | |
332 <classifier>srv3p</classifier> | 329 <classifier>srv3p</classifier> |
333 </configuration> | 330 </configuration> |
334 </plugin> | 331 </plugin> |
335 </plugins> | 332 </plugins> |
336 </build> | 333 </build> |