<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, | |
software distributed under the License is distributed on an | |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
KIND, either express or implied. See the License for the | |
specific language governing permissions and limitations | |
under the License. | |
--> | |
<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"> | |
<parent> <!-- this enables tests reuse [1/3] --> | |
<groupId>org.apache.jspwiki.it</groupId> | |
<artifactId>jspwiki-it-builder</artifactId> | |
<version>2.10.3</version> | |
</parent> | |
<!-- Container Managed Authentication using JDBC instead of XML files for user and group info --> | |
<artifactId>jspwiki-it-test-cma-jdbc</artifactId> | |
<modelVersion>4.0.0</modelVersion> | |
<description>selenium tests execution for jspwiki-it-test-container-jdbc (container auth, relative URLs, JDBC database)</description> | |
<packaging>war</packaging> <!-- this enables tests reuse [2/3] --> | |
<properties> <!-- values injected at jspwiki.properties & selenium templates --> | |
<!-- this enables tests reuse [3/3] --> | |
<it-jspwiki.context>${project.artifactId}</it-jspwiki.context> | |
<it-jspwiki.groupdatabase>org.apache.wiki.auth.authorize.JDBCGroupDatabase</it-jspwiki.groupdatabase> | |
<it-jspwiki.userdatabase>org.apache.wiki.auth.user.JDBCUserDatabase</it-jspwiki.userdatabase> | |
<it-jspwiki.referenceStyle>relative</it-jspwiki.referenceStyle> | |
</properties> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<resources> | |
<resource> | |
<directory>${project.basedir}/../jspwiki-selenium-tests/src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<groupId>com.btmatthews.maven.plugins.inmemdb</groupId> | |
<artifactId>inmemdb-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.tomcat.maven</groupId> | |
<artifactId>tomcat7-maven-plugin</artifactId> | |
<configuration> | |
<!-- Using CMA, so Tomcat instance needs a tomcat-users.xml w/usernames & passwords --> | |
<tomcatUsers> | |
${project.basedir}/../jspwiki-selenium-tests/src/main/config/tomcatconf/tomcat-users.xml | |
</tomcatUsers> | |
<!-- Using JDBC for User & Group info, so Tomcat instance needs JNDI lookups for database --> | |
<contextFile>${project.basedir}/../jspwiki-selenium-tests/src/main/config/tomcatconf/tomcat7-context.xml</contextFile> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>selenium-maven-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |