| 1 |
<!-- |
| 2 |
This program is free software: you can redistribute it and/or modify |
| 3 |
it under the terms of the GNU Affero General Public License as published by |
| 4 |
the Free Software Foundation, either version 3 of the License, or |
| 5 |
(at your option) any later version. |
| 6 |
|
| 7 |
This software is distributed in the hope that it will be useful, |
| 8 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 |
GNU Affero General Public License for more details. |
| 11 |
|
| 12 |
You should have received a copy of the GNU Affero General Public License |
| 13 |
along with this software. If not, see <http://www.gnu.org/licenses/>. |
| 14 |
|
| 15 |
Copyright © 2010 Candid Dauth |
| 16 |
--> |
| 17 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 18 |
<modelVersion>4.0.0</modelVersion> |
| 19 |
<groupId>eu.cdauth.osm</groupId> |
| 20 |
<artifactId>web</artifactId> |
| 21 |
<version>SNAPSHOT</version> |
| 22 |
<name>osmrmhv/web</name> |
| 23 |
<description>OSM Route Manager and History Viewer.</description> |
| 24 |
<packaging>pom</packaging> |
| 25 |
|
| 26 |
<licenses> |
| 27 |
<license> |
| 28 |
<name>GNU Affero General Public License Version 3</name> |
| 29 |
<distribution>repo</distribution> |
| 30 |
</license> |
| 31 |
</licenses> |
| 32 |
|
| 33 |
<parent> |
| 34 |
<groupId>eu.cdauth</groupId> |
| 35 |
<artifactId>osm</artifactId> |
| 36 |
<version>SNAPSHOT</version> |
| 37 |
</parent> |
| 38 |
|
| 39 |
<modules> |
| 40 |
<module>common</module> |
| 41 |
<module>osmrm</module> |
| 42 |
<module>osmhv</module> |
| 43 |
<!--<module>poiselect</module>--> |
| 44 |
</modules> |
| 45 |
|
| 46 |
<pluginRepositories> |
| 47 |
<pluginRepository> |
| 48 |
<id>maven-replacer-plugin repository</id> |
| 49 |
<url>http://maven-replacer-plugin.googlecode.com/svn/release-repo</url> |
| 50 |
</pluginRepository> |
| 51 |
</pluginRepositories> |
| 52 |
|
| 53 |
<properties> |
| 54 |
<project.build.jspFixedDirectory>${project.build.directory}/jsp-fixed</project.build.jspFixedDirectory> |
| 55 |
</properties> |
| 56 |
|
| 57 |
<dependencies> |
| 58 |
<dependency> |
| 59 |
<groupId>eu.cdauth.osm.lib</groupId> |
| 60 |
<artifactId>interface</artifactId> |
| 61 |
<version>SNAPSHOT</version> |
| 62 |
</dependency> |
| 63 |
<dependency> |
| 64 |
<groupId>eu.cdauth.osm.lib</groupId> |
| 65 |
<artifactId>api06</artifactId> |
| 66 |
<version>SNAPSHOT</version> |
| 67 |
</dependency> |
| 68 |
<dependency> |
| 69 |
<groupId>javax.servlet</groupId> |
| 70 |
<artifactId>servlet-api</artifactId> |
| 71 |
<version>2.5</version> |
| 72 |
<scope>provided</scope> |
| 73 |
</dependency> |
| 74 |
<dependency> |
| 75 |
<groupId>net.sourceforge.pjl-comp-filter</groupId> |
| 76 |
<artifactId>pjl-comp-filter</artifactId> |
| 77 |
<version>1.6.4</version> |
| 78 |
<scope>runtime</scope> |
| 79 |
</dependency> |
| 80 |
</dependencies> |
| 81 |
|
| 82 |
<build> |
| 83 |
<pluginManagement> |
| 84 |
<plugins> |
| 85 |
<plugin> |
| 86 |
<groupId>org.apache.maven.plugins</groupId> |
| 87 |
<artifactId>maven-antrun-plugin</artifactId> |
| 88 |
<version>1.3</version> |
| 89 |
<executions> |
| 90 |
<execution> |
| 91 |
<phase>compile</phase> |
| 92 |
<goals> |
| 93 |
<goal>run</goal> |
| 94 |
</goals> |
| 95 |
<configuration> |
| 96 |
<tasks> |
| 97 |
<mkdir dir="${project.build.jspFixedDirectory}" /> |
| 98 |
<copy todir="${project.build.jspFixedDirectory}"> |
| 99 |
<fileset dir="${basedir}/src/main/webapp" includes="**/*.jsp" /> |
| 100 |
</copy> |
| 101 |
</tasks> |
| 102 |
</configuration> |
| 103 |
</execution> |
| 104 |
</executions> |
| 105 |
</plugin> |
| 106 |
<plugin> |
| 107 |
<groupId>com.google.code.maven-replacer-plugin</groupId> |
| 108 |
<artifactId>maven-replacer-plugin</artifactId> |
| 109 |
<version>1.3.1</version> |
| 110 |
<executions> |
| 111 |
<execution> |
| 112 |
<phase>compile</phase> |
| 113 |
<goals> |
| 114 |
<goal>replace</goal> |
| 115 |
</goals> |
| 116 |
</execution> |
| 117 |
</executions> |
| 118 |
<configuration> |
| 119 |
<includes> |
| 120 |
<include>**/*.jsp</include> |
| 121 |
</includes> |
| 122 |
<basedir>${project.build.jspFixedDirectory}</basedir> |
| 123 |
<replacements> |
| 124 |
<replacement> |
| 125 |
<token>(--%>)(\n)</token> |
| 126 |
<value>$2$1</value> |
| 127 |
</replacement> |
| 128 |
<replacement> |
| 129 |
<token>(%>)(\n)</token> |
| 130 |
<value>$2$1</value> |
| 131 |
</replacement> |
| 132 |
</replacements> |
| 133 |
<regexFlags> |
| 134 |
<regexFlag>MULTILINE</regexFlag> |
| 135 |
</regexFlags> |
| 136 |
</configuration> |
| 137 |
</plugin> |
| 138 |
<plugin> |
| 139 |
<groupId>org.codehaus.mojo.jspc</groupId> |
| 140 |
<artifactId>jspc-maven-plugin</artifactId> |
| 141 |
<executions> |
| 142 |
<execution> |
| 143 |
<phase>compile</phase> |
| 144 |
<goals> |
| 145 |
<goal>compile</goal> |
| 146 |
</goals> |
| 147 |
</execution> |
| 148 |
</executions> |
| 149 |
<configuration> |
| 150 |
<trimSpaces>false</trimSpaces> |
| 151 |
<source>1.6</source> |
| 152 |
<sources> |
| 153 |
<directory>${project.build.jspFixedDirectory}</directory> |
| 154 |
</sources> |
| 155 |
</configuration> |
| 156 |
<dependencies> |
| 157 |
<dependency> |
| 158 |
<groupId>org.codehaus.mojo.jspc</groupId> |
| 159 |
<artifactId>jspc-compiler-tomcat6</artifactId> |
| 160 |
<version>2.0-alpha-3</version> |
| 161 |
</dependency> |
| 162 |
</dependencies> |
| 163 |
</plugin> |
| 164 |
<plugin> |
| 165 |
<groupId>org.apache.maven.plugins</groupId> |
| 166 |
<artifactId>maven-war-plugin</artifactId> |
| 167 |
<executions> |
| 168 |
<execution> |
| 169 |
<phase>package</phase> |
| 170 |
<goals> |
| 171 |
<goal>war</goal> |
| 172 |
</goals> |
| 173 |
<configuration> |
| 174 |
<webXml>${pom.basedir}/target/jspweb.xml</webXml> |
| 175 |
<failOnMissingWebXml>false</failOnMissingWebXml> |
| 176 |
</configuration> |
| 177 |
</execution> |
| 178 |
</executions> |
| 179 |
</plugin> |
| 180 |
</plugins> |
| 181 |
</pluginManagement> |
| 182 |
</build> |
| 183 |
</project> |