inline jspwiki-it-test-cma-jdbc plugin execution with jspwiki-it-tests configuration
-->
<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] -->
+ <parent> <!-- tests reuse [1/3]: reads common configuration for ITs and brings jspwiki-war as dependency -->
<groupId>org.apache.jspwiki.it</groupId>
<artifactId>jspwiki-it-builder</artifactId>
<version>2.11.0.M1-SNAPSHOT</version>
<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] -->
+ <packaging>war</packaging> <!-- tests reuse [2/3]: builds a war on top of jspwiki-war -->
- <properties> <!-- values injected at jspwiki.properties & selenium templates -->
- <!-- this enables tests reuse [3/3] -->
+ <properties> <!-- tests reuse [3/3]: values injected at ../jspwiki-selenide-tests/.../jspwiki-custom.properties end up on generated war -->
<it-jspwiki.context>${project.artifactId}</it-jspwiki.context>
<it-jspwiki.groupdatabase>org.apache.wiki.auth.authorize.JDBCGroupDatabase</it-jspwiki.groupdatabase>
</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>
</plugin>
<plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <configuration>
- <configfiles>
- <configfile> <!-- Using CMA, so Tomcat instance needs a tomcat-users.xml w/usernames & passwords -->
- <file>${project.basedir}/../jspwiki-selenium-tests/src/main/config/tomcatconf/tomcat-users.xml</file>
- <todir>conf</todir>
- </configfile>
- <configfile> <!-- Using JDBC for User & Group info, so Tomcat instance needs JNDI lookups for database -->
- <file>${project.basedir}/../jspwiki-selenium-tests/src/main/config/tomcatconf/context.xml</file>
- <todir>conf</todir>
- </configfile>
- </configfiles>
- </configuration>
+ <artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
</plugin>
</plugins>
</build>
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>jspwiki-selenide-tests</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
</project>
\ No newline at end of file
