jetty.project/tests/test-sessions/test-mongodb-sessions/pom.xml

163 lines
5.9 KiB
XML
Raw Normal View History

2017-06-06 11:55:12 -04:00
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-sessions-parent</artifactId>
2018-03-20 09:25:59 -04:00
<version>9.4.10-SNAPSHOT</version>
2017-06-06 11:55:12 -04:00
</parent>
<artifactId>test-mongodb-sessions</artifactId>
<name>Jetty Tests :: Sessions :: Mongo</name>
<url>http://www.eclipse.org/jetty</url>
<properties>
<bundle-symbolic-name>${project.groupId}.sessions.mongo</bundle-symbolic-name>
Jetty 9.4.x 2231 refactor session tests (#2382) * Issue #2231 WIP * Issue #2231 Add tests for FileSessionDataStore and MongoSessionDataStore. * Issue #2231 create unit tests for every SessionDataStore Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor session tests Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor and cleanup session tests. Signed-off-by: Jan Bartel <janb@webtide.com> * hazelcast tests faster Signed-off-by: olivier lamy <olamy@webtide.com> * make hazelcasts tests even faster Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup comments Signed-off-by: olivier lamy <olamy@webtide.com> * run mongodb test in embdedded mode Signed-off-by: olivier lamy <olamy@webtide.com> * mongodb embedded test enabled per default Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 more session tests Signed-off-by: Jan Bartel <janb@webtide.com> * fix mongodb embedded tests Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup code Signed-off-by: olivier lamy <olamy@webtide.com> * use Logger rather than System.err.println Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 Add test for DefaultSessionCache Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Redisable mongo tests by default. Signed-off-by: Jan Bartel <janb@webtide.com> * fix issue with empty local repo build Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * jenkins should run mongodb tests Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build this plugin last so we should not hit the maven invoker plugin Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build test first for this one Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * use invoker plugin 3.0.2-SNAPSHOT as there is a fix for https://issues.apache.org/jira/browse/MINVOKER-191 Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * temporary use of apache snapshots repository because of maven-invoker-plugin 3.0.2-SNAPSHOT Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-03-28 06:14:15 -04:00
<embedmongo.host>localhost</embedmongo.host>
</properties>
2017-06-06 11:55:12 -04:00
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<!-- DO NOT DEPLOY (or Release) -->
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-test-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-policy</artifactId>
<version>${jetty-test-policy-version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<includes>**/*.keystore,**/*.pem</includes>
<outputDirectory>${jetty.test.policy.loc}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-sessions-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-nosql</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jmx</artifactId>
<version>${project.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-helper</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>mongodb</id>
<activation>
<property>
<name>mongodb.enabled</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
Jetty 9.4.x 2231 refactor session tests (#2382) * Issue #2231 WIP * Issue #2231 Add tests for FileSessionDataStore and MongoSessionDataStore. * Issue #2231 create unit tests for every SessionDataStore Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor session tests Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor and cleanup session tests. Signed-off-by: Jan Bartel <janb@webtide.com> * hazelcast tests faster Signed-off-by: olivier lamy <olamy@webtide.com> * make hazelcasts tests even faster Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup comments Signed-off-by: olivier lamy <olamy@webtide.com> * run mongodb test in embdedded mode Signed-off-by: olivier lamy <olamy@webtide.com> * mongodb embedded test enabled per default Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 more session tests Signed-off-by: Jan Bartel <janb@webtide.com> * fix mongodb embedded tests Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup code Signed-off-by: olivier lamy <olamy@webtide.com> * use Logger rather than System.err.println Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 Add test for DefaultSessionCache Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Redisable mongo tests by default. Signed-off-by: Jan Bartel <janb@webtide.com> * fix issue with empty local repo build Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * jenkins should run mongodb tests Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build this plugin last so we should not hit the maven invoker plugin Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build test first for this one Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * use invoker plugin 3.0.2-SNAPSHOT as there is a fix for https://issues.apache.org/jira/browse/MINVOKER-191 Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * temporary use of apache snapshots repository because of maven-invoker-plugin 3.0.2-SNAPSHOT Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-03-28 06:14:15 -04:00
<systemPropertyVariables>
<embedmongoPort>${embedmongo.port}</embedmongoPort>
<embedmongoHost>${embedmongo.host}</embedmongoHost>
</systemPropertyVariables>
2017-06-06 11:55:12 -04:00
<skipTests>false</skipTests>
</configuration>
</plugin>
Jetty 9.4.x 2231 refactor session tests (#2382) * Issue #2231 WIP * Issue #2231 Add tests for FileSessionDataStore and MongoSessionDataStore. * Issue #2231 create unit tests for every SessionDataStore Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor session tests Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Refactor and cleanup session tests. Signed-off-by: Jan Bartel <janb@webtide.com> * hazelcast tests faster Signed-off-by: olivier lamy <olamy@webtide.com> * make hazelcasts tests even faster Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup comments Signed-off-by: olivier lamy <olamy@webtide.com> * run mongodb test in embdedded mode Signed-off-by: olivier lamy <olamy@webtide.com> * mongodb embedded test enabled per default Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 more session tests Signed-off-by: Jan Bartel <janb@webtide.com> * fix mongodb embedded tests Signed-off-by: olivier lamy <olamy@webtide.com> * cleanup code Signed-off-by: olivier lamy <olamy@webtide.com> * use Logger rather than System.err.println Signed-off-by: olivier lamy <olamy@webtide.com> * Issue #2231 Add test for DefaultSessionCache Signed-off-by: Jan Bartel <janb@webtide.com> * Issue #2231 Redisable mongo tests by default. Signed-off-by: Jan Bartel <janb@webtide.com> * fix issue with empty local repo build Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * jenkins should run mongodb tests Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build this plugin last so we should not hit the maven invoker plugin Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * build test first for this one Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * use invoker plugin 3.0.2-SNAPSHOT as there is a fix for https://issues.apache.org/jira/browse/MINVOKER-191 Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * temporary use of apache snapshots repository because of maven-invoker-plugin 3.0.2-SNAPSHOT Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-03-28 06:14:15 -04:00
<plugin>
<groupId>com.github.joelittlejohn.embedmongo</groupId>
<artifactId>embedmongo-maven-plugin</artifactId>
<version>0.3.5</version>
<configuration>
<!--port>37017</port-->
<!-- allocates a random port and overrides embedmongo.port -->
<randomPort>true</randomPort>
<databaseDirectory>${project.build.directory}/mongotest</databaseDirectory>
<!-- optional (file|console|none), default console -->
<logging>file</logging>
<!-- optional, can be used when logging=file, default is ./embedmongo.log -->
<logFile>${project.build.directory}/embedmongo.log</logFile>
<!--optional, one of wiredTiger or mmapv1 (default is mmapv1) -->
<!--storageEngine>wiredTiger</storageEngine-->
<!-- optional, skips this plugin entirely, use on the command line like -Dembedmongo.skip -->
<skip>false</skip>
</configuration>
<executions>
<execution>
<id>start</id>
<phase>process-test-classes</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
2017-06-06 11:55:12 -04:00
</plugins>
</build>
</profile>
</profiles>
</project>