Mercurial > hg > digilib
view servlet2/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 |
line wrap: on
line source
<?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>digilib</artifactId> <groupId>digilib</groupId> <version>2.6-SNAPSHOT</version> </parent> <artifactId>digilib-servlet2</artifactId> <name>digilib-servlet2</name> <description>The Digital Image Library - Servlet with version 2 API</description> <packaging>jar</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>digilib</groupId> <artifactId>digilib-servlet</artifactId> </dependency> </dependencies> </project>
