| 1 |
<!--
|
| 2 |
/*
|
| 3 |
* Licensed to the Apache Software Foundation (ASF) under one or more
|
| 4 |
* contributor license agreements. See the NOTICE file distributed with
|
| 5 |
* this work for additional information regarding copyright ownership.
|
| 6 |
* The ASF licenses this file to you under the Apache License, Version 2.0
|
| 7 |
* (the "License"); you may not use this file except in compliance with
|
| 8 |
* the License. You may obtain a copy of the License at
|
| 9 |
*
|
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0
|
| 11 |
*
|
| 12 |
* Unless required by applicable law or agreed to in writing, software
|
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 |
* See the License for the specific language governing permissions and
|
| 16 |
* limitations under the License.
|
| 17 |
*
|
| 18 |
* $Id$
|
| 19 |
*/
|
| 20 |
-->
|
| 21 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 22 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
| 23 |
|
| 24 |
<modelVersion>4.0.0</modelVersion>
|
| 25 |
<parent>
|
| 26 |
<groupId>org.apache.shale</groupId>
|
| 27 |
<artifactId>shale-parent</artifactId>
|
| 28 |
<version>1.1.0-SNAPSHOT</version>
|
| 29 |
</parent>
|
| 30 |
<artifactId>shale-apps-parent</artifactId>
|
| 31 |
<packaging>pom</packaging>
|
| 32 |
<name>Apache Shale Framework Sample Apps</name>
|
| 33 |
<url>http://shale.apache.org</url>
|
| 34 |
|
| 35 |
|
| 36 |
<scm>
|
| 37 |
<connection>scm:svn:http://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps</connection>
|
| 38 |
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/shale/framework/trunk/shale-apps</developerConnection>
|
| 39 |
<url>http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps</url>
|
| 40 |
</scm>
|
| 41 |
|
| 42 |
<distributionManagement>
|
| 43 |
<site>
|
| 44 |
<id>apache-site</id>
|
| 45 |
<url>scp://people.apache.org/www/shale.apache.org/shale-apps</url>
|
| 46 |
</site>
|
| 47 |
</distributionManagement>
|
| 48 |
|
| 49 |
|
| 50 |
<dependencies>
|
| 51 |
<!-- Document "provided" dependencies to avoid cluttering WAR files -->
|
| 52 |
</dependencies>
|
| 53 |
|
| 54 |
<!-- Define dependency version numbers for commmonly used dependencies here,
|
| 55 |
so that Maven finds them at a nearer "depth" than those defined in the
|
| 56 |
org.apache.shale:shale-master POM. WARNING - as you update versions
|
| 57 |
here, be sure you also update them there. -->
|
| 58 |
<dependencyManagement>
|
| 59 |
|
| 60 |
<dependencies>
|
| 61 |
|
| 62 |
<dependency>
|
| 63 |
<groupId>commons-chain</groupId>
|
| 64 |
<artifactId>commons-chain</artifactId>
|
| 65 |
<version>1.1</version>
|
| 66 |
</dependency>
|
| 67 |
|
| 68 |
<dependency>
|
| 69 |
<groupId>commons-collections</groupId>
|
| 70 |
<artifactId>commons-collections</artifactId>
|
| 71 |
<version>3.1</version>
|
| 72 |
</dependency>
|
| 73 |
|
| 74 |
<dependency>
|
| 75 |
<groupId>commons-digester</groupId>
|
| 76 |
<artifactId>commons-digester</artifactId>
|
| 77 |
<version>1.8</version>
|
| 78 |
</dependency>
|
| 79 |
|
| 80 |
<dependency>
|
| 81 |
<groupId>commons-logging</groupId>
|
| 82 |
<artifactId>commons-logging</artifactId>
|
| 83 |
<version>1.1</version>
|
| 84 |
</dependency>
|
| 85 |
|
| 86 |
<dependency>
|
| 87 |
<groupId>commons-validator</groupId>
|
| 88 |
<artifactId>commons-validator</artifactId>
|
| 89 |
<version>1.3.1</version>
|
| 90 |
</dependency>
|
| 91 |
|
| 92 |
</dependencies>
|
| 93 |
|
| 94 |
</dependencyManagement>
|
| 95 |
|
| 96 |
<!-- TODO: Move the 'itest' profile and dependencies to this pom when MNG-2221 is fixed. -->
|
| 97 |
|
| 98 |
<profiles>
|
| 99 |
<!--
|
| 100 |
A helpful profile when creating Eclipse configuration
|
| 101 |
files for the Eclipse Web Tools project.
|
| 102 |
|
| 103 |
For example:
|
| 104 |
$ cd shale/framework
|
| 105 |
$ mvn -Papps -Dwtpversion=1.0 eclipse:eclipse
|
| 106 |
|
| 107 |
-->
|
| 108 |
<profile>
|
| 109 |
<id>wtp-myfaces</id>
|
| 110 |
<dependencies>
|
| 111 |
<dependency>
|
| 112 |
<groupId>org.apache.myfaces.core</groupId>
|
| 113 |
<artifactId>myfaces-api</artifactId>
|
| 114 |
<version>1.1.4</version>
|
| 115 |
<scope>runtime</scope>
|
| 116 |
</dependency>
|
| 117 |
<dependency>
|
| 118 |
<groupId>org.apache.myfaces.core</groupId>
|
| 119 |
<artifactId>myfaces-impl</artifactId>
|
| 120 |
<version>1.1.4</version>
|
| 121 |
<scope>runtime</scope>
|
| 122 |
</dependency>
|
| 123 |
</dependencies>
|
| 124 |
</profile>
|
| 125 |
|
| 126 |
<!-- Profile for the Apache MyFaces JSF 1.1 Implementation -->
|
| 127 |
<profile>
|
| 128 |
<id>myfaces</id>
|
| 129 |
<activation>
|
| 130 |
<property>
|
| 131 |
<name>!jsf</name>
|
| 132 |
</property>
|
| 133 |
</activation>
|
| 134 |
<dependencies>
|
| 135 |
<dependency>
|
| 136 |
<groupId>org.apache.myfaces.core</groupId>
|
| 137 |
<artifactId>myfaces-api</artifactId>
|
| 138 |
<version>1.1.4</version>
|
| 139 |
<scope>compile</scope>
|
| 140 |
</dependency>
|
| 141 |
<dependency>
|
| 142 |
<groupId>org.apache.myfaces.core</groupId>
|
| 143 |
<artifactId>myfaces-impl</artifactId>
|
| 144 |
<version>1.1.4</version>
|
| 145 |
<scope>runtime</scope>
|
| 146 |
</dependency>
|
| 147 |
<dependency>
|
| 148 |
<groupId>javax.servlet</groupId>
|
| 149 |
<artifactId>jsp-api</artifactId>
|
| 150 |
<version>2.0</version>
|
| 151 |
<scope>provided</scope>
|
| 152 |
</dependency>
|
| 153 |
</dependencies>
|
| 154 |
</profile>
|
| 155 |
|
| 156 |
<!-- Profile for the JSF 1.1 Reference Implementation -->
|
| 157 |
<profile>
|
| 158 |
<id>jsfri</id>
|
| 159 |
<activation>
|
| 160 |
<property>
|
| 161 |
<name>jsf</name>
|
| 162 |
<value>ri</value>
|
| 163 |
</property>
|
| 164 |
</activation>
|
| 165 |
<dependencies>
|
| 166 |
<!-- Force Commons Collections 3.1 so 2.1 is not selected -->
|
| 167 |
<dependency>
|
| 168 |
<groupId>commons-collections</groupId>
|
| 169 |
<artifactId>commons-collections</artifactId>
|
| 170 |
<version>3.1</version>
|
| 171 |
</dependency>
|
| 172 |
<dependency>
|
| 173 |
<groupId>javax.faces</groupId>
|
| 174 |
<artifactId>jsf-api</artifactId>
|
| 175 |
<version>1.1_02</version>
|
| 176 |
<exclusions>
|
| 177 |
<exclusion>
|
| 178 |
<groupId>javax.servlet</groupId>
|
| 179 |
<artifactId>servlet-api</artifactId>
|
| 180 |
</exclusion>
|
| 181 |
<exclusion>
|
| 182 |
<groupId>javax.servlet.jsp</groupId>
|
| 183 |
<artifactId>jsp-api</artifactId>
|
| 184 |
</exclusion>
|
| 185 |
</exclusions>
|
| 186 |
</dependency>
|
| 187 |
<dependency>
|
| 188 |
<groupId>javax.faces</groupId>
|
| 189 |
<artifactId>jsf-impl</artifactId>
|
| 190 |
<version>1.1_02</version>
|
| 191 |
<scope>runtime</scope>
|
| 192 |
<exclusions>
|
| 193 |
<exclusion>
|
| 194 |
<groupId>javax.servlet</groupId>
|
| 195 |
<artifactId>servlet-api</artifactId>
|
| 196 |
</exclusion>
|
| 197 |
<exclusion>
|
| 198 |
<groupId>javax.servlet.jsp</groupId>
|
| 199 |
<artifactId>jsp-api</artifactId>
|
| 200 |
</exclusion>
|
| 201 |
</exclusions>
|
| 202 |
</dependency>
|
| 203 |
<dependency>
|
| 204 |
<groupId>javax.servlet</groupId>
|
| 205 |
<artifactId>servlet-api</artifactId>
|
| 206 |
<version>2.3</version>
|
| 207 |
<scope>provided</scope>
|
| 208 |
</dependency>
|
| 209 |
<dependency>
|
| 210 |
<groupId>javax.servlet.jsp</groupId>
|
| 211 |
<artifactId>jsp-api</artifactId>
|
| 212 |
<version>1.2</version>
|
| 213 |
<scope>provided</scope>
|
| 214 |
</dependency>
|
| 215 |
</dependencies>
|
| 216 |
</profile>
|
| 217 |
|
| 218 |
<!-- Profile for JSF 1.2 on a Non-Java EE 5 Container (such as Tomcat 6.0) -->
|
| 219 |
<profile>
|
| 220 |
<id>jsfri12</id>
|
| 221 |
<activation>
|
| 222 |
<property>
|
| 223 |
<name>jsf</name>
|
| 224 |
<value>ri12</value>
|
| 225 |
</property>
|
| 226 |
</activation>
|
| 227 |
<dependencies>
|
| 228 |
<dependency>
|
| 229 |
<groupId>javax.el</groupId>
|
| 230 |
<artifactId>el-api</artifactId>
|
| 231 |
<version>1.0</version>
|
| 232 |
<scope>provided</scope> <!-- JSP 2.1 requires it -->
|
| 233 |
</dependency>
|
| 234 |
<dependency>
|
| 235 |
<groupId>javax.faces</groupId>
|
| 236 |
<artifactId>jsf-api</artifactId>
|
| 237 |
<version>1.2_03</version>
|
| 238 |
</dependency>
|
| 239 |
<dependency>
|
| 240 |
<groupId>javax.faces</groupId>
|
| 241 |
<artifactId>jsf-impl</artifactId>
|
| 242 |
<version>1.2_03</version>
|
| 243 |
<scope>runtime</scope>
|
| 244 |
</dependency>
|
| 245 |
<dependency>
|
| 246 |
<groupId>javax.servlet</groupId>
|
| 247 |
<artifactId>servlet-api</artifactId>
|
| 248 |
<version>2.5</version>
|
| 249 |
<scope>provided</scope>
|
| 250 |
</dependency>
|
| 251 |
<dependency>
|
| 252 |
<groupId>javax.servlet.jsp</groupId>
|
| 253 |
<artifactId>jsp-api</artifactId>
|
| 254 |
<version>2.1</version>
|
| 255 |
<scope>provided</scope>
|
| 256 |
</dependency>
|
| 257 |
</dependencies>
|
| 258 |
</profile>
|
| 259 |
|
| 260 |
<!-- Profile for JSF 1.2 on a Java EE 5 Container (such as Glassfish) -->
|
| 261 |
<profile>
|
| 262 |
<id>jsfee5</id>
|
| 263 |
<activation>
|
| 264 |
<property>
|
| 265 |
<name>jsf</name>
|
| 266 |
<value>ee5</value>
|
| 267 |
</property>
|
| 268 |
</activation>
|
| 269 |
<dependencies>
|
| 270 |
<dependency>
|
| 271 |
<groupId>javax.el</groupId>
|
| 272 |
<artifactId>el-api</artifactId>
|
| 273 |
<version>1.0</version>
|
| 274 |
<scope>provided</scope>
|
| 275 |
</dependency>
|
| 276 |
<dependency>
|
| 277 |
<groupId>javax.faces</groupId>
|
| 278 |
<artifactId>jsf-api</artifactId>
|
| 279 |
<version>1.2_03</version>
|
| 280 |
<scope>provided</scope>
|
| 281 |
</dependency>
|
| 282 |
<dependency>
|
| 283 |
<groupId>javax.servlet</groupId>
|
| 284 |
<artifactId>servlet-api</artifactId>
|
| 285 |
<version>2.5</version>
|
| 286 |
<scope>provided</scope>
|
| 287 |
</dependency>
|
| 288 |
<dependency>
|
| 289 |
<groupId>javax.servlet.jsp</groupId>
|
| 290 |
<artifactId>jsp-api</artifactId>
|
| 291 |
<version>2.1</version>
|
| 292 |
<scope>provided</scope>
|
| 293 |
</dependency>
|
| 294 |
</dependencies>
|
| 295 |
</profile>
|
| 296 |
|
| 297 |
<!-- Sample applications that depend on JDK 1.5 -->
|
| 298 |
<profile>
|
| 299 |
<activation>
|
| 300 |
<jdk>1.5</jdk>
|
| 301 |
</activation>
|
| 302 |
<modules>
|
| 303 |
<module>mailreader-jpa</module>
|
| 304 |
<module>shale-mailreader-jpa</module>
|
| 305 |
<module>shale-sql-browser</module>
|
| 306 |
<module>shale-test-tiger</module>
|
| 307 |
</modules>
|
| 308 |
</profile>
|
| 309 |
|
| 310 |
<!-- See http://shale.apache.org/shale-apps/selenium.html -->
|
| 311 |
<profile>
|
| 312 |
<id>selenium</id>
|
| 313 |
<activation>
|
| 314 |
<property>
|
| 315 |
<name>selenium</name>
|
| 316 |
</property>
|
| 317 |
</activation>
|
| 318 |
<build>
|
| 319 |
<plugins>
|
| 320 |
<plugin>
|
| 321 |
<groupId>org.codehaus.mojo</groupId>
|
| 322 |
<artifactId>dependency-maven-plugin</artifactId>
|
| 323 |
<executions>
|
| 324 |
<execution>
|
| 325 |
<id>unpack-selenium</id>
|
| 326 |
<phase>generate-resources</phase>
|
| 327 |
<goals>
|
| 328 |
<goal>unpack</goal>
|
| 329 |
</goals>
|
| 330 |
<configuration>
|
| 331 |
<artifactItems>
|
| 332 |
<artifactItem>
|
| 333 |
<groupId>org.openqa.selenium.core</groupId>
|
| 334 |
<artifactId>selenium-core</artifactId>
|
| 335 |
<version>0.7.0</version>
|
| 336 |
</artifactItem>
|
| 337 |
</artifactItems>
|
| 338 |
<outputDirectory>${project.build.directory}/selenium</outputDirectory>
|
| 339 |
</configuration>
|
| 340 |
</execution>
|
| 341 |
</executions>
|
| 342 |
</plugin>
|
| 343 |
<plugin>
|
| 344 |
<artifactId>maven-antrun-plugin</artifactId>
|
| 345 |
<executions>
|
| 346 |
<execution>
|
| 347 |
<id>copy-selenium</id>
|
| 348 |
<phase>process-resources</phase>
|
| 349 |
<configuration>
|
| 350 |
<tasks>
|
| 351 |
<copy todir="${project.build.directory}/${artifactId}/selenium/core">
|
| 352 |
<fileset dir="${project.build.directory}/selenium/core"/>
|
| 353 |
</copy>
|
| 354 |
<copy todir="${project.build.directory}/${artifactId}/selenium/tests">
|
| 355 |
<fileset dir="${basedir}/src/test/selenium"/>
|
| 356 |
</copy>
|
| 357 |
</tasks>
|
| 358 |
</configuration>
|
| 359 |
<goals>
|
| 360 |
<goal>run</goal>
|
| 361 |
</goals>
|
| 362 |
</execution>
|
| 363 |
</executions>
|
| 364 |
</plugin>
|
| 365 |
</plugins>
|
| 366 |
</build>
|
| 367 |
<repositories>
|
| 368 |
<repository>
|
| 369 |
<id>OpenQA</id>
|
| 370 |
<url>http://maven.openqa.org</url>
|
| 371 |
</repository>
|
| 372 |
</repositories>
|
| 373 |
</profile>
|
| 374 |
|
| 375 |
<!-- Profile to enable the Jetty plugin for testing -->
|
| 376 |
<profile>
|
| 377 |
<id>jetty</id>
|
| 378 |
<build>
|
| 379 |
<!-- Explicitly select Version 6.0.1, so we do not
|
| 380 |
get 6.0.1pre0 by default -->
|
| 381 |
<plugins>
|
| 382 |
<plugin>
|
| 383 |
<groupId>org.mortbay.jetty</groupId>
|
| 384 |
<artifactId>maven-jetty-plugin</artifactId>
|
| 385 |
<version>6.0.1</version>
|
| 386 |
</plugin>
|
| 387 |
</plugins>
|
| 388 |
</build>
|
| 389 |
<!-- Explicitly replace compile dependencies to pick up the
|
| 390 |
Tomcat version of the Jasper compiler -->
|
| 391 |
<dependencies>
|
| 392 |
<dependency>
|
| 393 |
<groupId>javax.servlet</groupId>
|
| 394 |
<artifactId>jsp-api</artifactId>
|
| 395 |
<version>2.0</version>
|
| 396 |
<scope>compile</scope>
|
| 397 |
</dependency>
|
| 398 |
<dependency>
|
| 399 |
<groupId>tomcat</groupId>
|
| 400 |
<artifactId>jasper-compiler</artifactId>
|
| 401 |
<version>5.5.9</version>
|
| 402 |
<scope>compile</scope>
|
| 403 |
</dependency>
|
| 404 |
<dependency>
|
| 405 |
<groupId>tomcat</groupId>
|
| 406 |
<artifactId>jasper-runtime</artifactId>
|
| 407 |
<version>5.5.9</version>
|
| 408 |
<scope>compile</scope>
|
| 409 |
</dependency>
|
| 410 |
<dependency>
|
| 411 |
<groupId>tomcat</groupId>
|
| 412 |
<artifactId>jasper-compiler-jdt</artifactId>
|
| 413 |
<version>5.5.9</version>
|
| 414 |
<scope>compile</scope>
|
| 415 |
</dependency>
|
| 416 |
</dependencies>
|
| 417 |
</profile>
|
| 418 |
|
| 419 |
</profiles>
|
| 420 |
|
| 421 |
<modules>
|
| 422 |
<module>shale-blank</module>
|
| 423 |
<module>shale-mailreader</module>
|
| 424 |
<module>shale-usecases</module>
|
| 425 |
<module>shale-clay-usecases</module>
|
| 426 |
<module>shale-test-core</module>
|
| 427 |
<module>shale-test-dialog-basic</module>
|
| 428 |
<module>shale-test-dialog-scxml</module>
|
| 429 |
<module>shale-test-view</module>
|
| 430 |
</modules>
|
| 431 |
|
| 432 |
<build>
|
| 433 |
<finalName>${artifactId}</finalName>
|
| 434 |
<plugins>
|
| 435 |
<plugin>
|
| 436 |
<groupId>org.codehaus.cargo</groupId>
|
| 437 |
<artifactId>cargo-maven2-plugin</artifactId>
|
| 438 |
<configuration>
|
| 439 |
<container>
|
| 440 |
<containerId>tomcat5x</containerId>
|
| 441 |
<home>${cargo.tomcat5x.home}</home>
|
| 442 |
<log>${project.build.directory}/tomcat5x.log</log>
|
| 443 |
<output>${project.build.directory}/tomcat5x.out</output>
|
| 444 |
</container>
|
| 445 |
<configuration>
|
| 446 |
<home>${project.build.directory}/tomcat5x</home>
|
| 447 |
<properties>
|
| 448 |
<cargo.jvmargs> -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n </cargo.jvmargs>
|
| 449 |
</properties>
|
| 450 |
</configuration>
|
| 451 |
</configuration>
|
| 452 |
</plugin>
|
| 453 |
</plugins>
|
| 454 |
</build>
|
| 455 |
|
| 456 |
</project>
|