Mercurial > hg > digilib
diff webapp/pom.xml @ 894:53dd7e189155
refactored into maven modules per servlet type.
can build servlet-api 2.3 and 3.0 via profile now!
author | robcast |
---|---|
date | Tue, 26 Apr 2011 20:24:31 +0200 |
parents | client/pom.xml@d364e6ff24f1 |
children | 8b706be7c3e9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webapp/pom.xml Tue Apr 26 20:24:31 2011 +0200 @@ -0,0 +1,83 @@ +<?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.0-SNAPSHOT</version> + </parent> + <groupId>digilib</groupId> + <artifactId>digilib-webapp</artifactId> + <version>2.0-SNAPSHOT</version> + <name>digilib-webapp</name> + <description>The Digital Image Library - web application server and HTML and JS clients</description> + <url>http://digilib.berlios.de</url> + <packaging>war</packaging> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <profiles> + <profile> + <id>servlet2</id> + <activation> + <activeByDefault>true</activeByDefault> + <property> + <name>servletapi</name> + <value>2</value> + </property> + </activation> + <dependencies> + <dependency> + <groupId>digilib</groupId> + <artifactId>digilib-servlet2</artifactId> + <type>jar</type> + <scope>compile</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <configuration> + <webXml>${basedir}/src/main/webapp/WEB-INF/web-2.3.xml</webXml> + <classifier>srv3</classifier> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>servlet3</id> + <activation> + <property> + <name>servletapi</name> + <value>3</value> + </property> + </activation> + <dependencies> + <dependency> + <groupId>digilib</groupId> + <artifactId>digilib-servlet3</artifactId> + <type>jar</type> + <scope>compile</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-war-plugin</artifactId> + <configuration> + <webXml>${basedir}/src/main/webapp/WEB-INF/web-3.0.xml</webXml> + <classifier>srv3</classifier> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project>