<?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">

	<modelVersion>4.0.0</modelVersion>
	<artifactId>cayenne-parent</artifactId>
	<groupId>org.apache.cayenne</groupId>
	<name>cayenne-parent: Top-level parent of Cayenne modules</name>

	<version>4.1</version>
	<packaging>pom</packaging>

	<description>
		Apache Cayenne is a powerful, full-featured, and open source
		Java framework, plus developer tools, that provides Object
		Relational Mapping (ORM) and remoting services for persistence.
		The software is licensed under the Apache License.
	</description>

	<properties>
		<maven.build.timestamp.format>MMM dd yyyy HH:mm:ss</maven.build.timestamp.format>
		<project.build.datetime>${maven.build.timestamp}</project.build.datetime>
        <jacoco.version>0.7.9</jacoco.version>
		<slf4j.version>1.7.25</slf4j.version>
		<ant.version>1.10.5</ant.version>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

	<url>http://cayenne.apache.org/</url>
	<modules>
		<module>build-tools</module>
		<module>cayenne-ant</module>
		<module>cayenne-cache-invalidation</module>
		<module>cayenne-cgen</module>
		<module>cayenne-client</module>
		<module>cayenne-client-jetty</module>
		<module>cayenne-commitlog</module>
		<module>cayenne-crypto</module>
		<module>cayenne-dbcp2</module>
		<module>cayenne-dbsync</module>
		<module>cayenne-di</module>
		<module>cayenne-gradle-plugin</module>
		<module>cayenne-jcache</module>
		<module>cayenne-joda</module>
		<module>cayenne-lifecycle</module>
		<module>cayenne-project</module>
		<module>cayenne-project-compatibility</module>
		<module>cayenne-protostuff</module>
		<module>cayenne-server</module>
		<module>cayenne-velocity</module>
		<module>cayenne-web</module>
		<module>cayenne-osgi</module>
		<module>cayenne-rop-server</module>
		<module>cayenne-jgroups</module>
		<module>cayenne-jms</module>
		<module>cayenne-xmpp</module>
		<module>maven-plugins</module>
		<module>modeler</module>
		<module>tutorials</module>
		<module>docs</module>
		<module>assembly</module>
	</modules>
	<issueManagement>
		<system>jira</system>
		<url>https://issues.apache.org/jira/browse/CAY</url>
	</issueManagement>
	<inceptionYear>2001</inceptionYear>
	<mailingLists>
		<mailingList>
			<name>Cayenne User List</name>
			<post>user@cayenne.apache.org</post>
			<subscribe>user-subscribe@cayenne.apache.org</subscribe>
			<unsubscribe>user-unsubscribe@cayenne.apache.org</unsubscribe>
			<archive>https://lists.apache.org/list.html?user@cayenne.apache.org</archive>
			<otherArchives>
				<otherArchive>http://mail-archives.apache.org/mod_mbox/cayenne-user</otherArchive>
				<otherArchive>http://cayenne.markmail.org/search/+list:org.apache.cayenne.user</otherArchive>
				<otherArchive>http://dir.gmane.org/gmane.comp.java.cayenne.user</otherArchive>
			</otherArchives>
		</mailingList>
		<mailingList>
			<name>Cayenne Developer List</name>
			<post>dev@cayenne.apache.org</post>
			<subscribe>dev-subscribe@cayenne.apache.org</subscribe>
			<unsubscribe>dev-unsubscribe@cayenne.apache.org</unsubscribe>
			<archive>https://lists.apache.org/list.html?dev@cayenne.apache.org</archive>
			<otherArchives>
				<otherArchive>http://mail-archives.apache.org/mod_mbox/cayenne-dev</otherArchive>
				<otherArchive>http://cayenne.markmail.org/search/+list:org.apache.cayenne.dev</otherArchive>
				<otherArchive>http://dir.gmane.org/gmane.comp.java.cayenne.devel</otherArchive>
			</otherArchives>
		</mailingList>
		<mailingList>
			<name>Cayenne Commits</name>
			<subscribe>commits-subscribe@cayenne.apache.org</subscribe>
			<unsubscribe>commits-unsubscribe@cayenne.apache.org</unsubscribe>
			<archive>https://lists.apache.org/list.html?commits@cayenne.apache.org</archive>
			<otherArchives>
				<otherArchive>http://mail-archives.apache.org/mod_mbox/cayenne-commits</otherArchive>
				<otherArchive>http://cayenne.markmail.org/search/+list:org.apache.cayenne.commits</otherArchive>
			</otherArchives>
		</mailingList>
	</mailingLists>
	<developers>
		<developer>
			<id>andrus</id>
			<name>Andrus Adamchik</name>
			<email>andrus@objectstyle.org</email>
			<organization>ObjectStyle</organization>
			<roles>
				<role>PMC, Chair</role>
			</roles>
			<timezone>-5</timezone>
		</developer>
		<developer>
			<id>bdudney</id>
			<name>Bill Dudney</name>
			<email>bdudney@apache.org</email>
			<organization>Virtuas</organization>
			<roles>
				<role>PMC, Member</role>
			</roles>
			<timezone>-7</timezone>
		</developer>
		<developer>
			<name>Cris Daniluk</name>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<name>Malcolm Edgar</name>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<name>Michael Gentry</name>
			<roles>
				<role>PMC, Member</role>
			</roles>
		</developer>
		<developer>
			<name>Tore Halset</name>
			<roles>
				<role>PMC, Member</role>
			</roles>
		</developer>
		<developer>
			<name>Mike Kienenberger</name>
			<roles>
				<role>PMC, Member</role>
			</roles>
		</developer>
		<developer>
			<name>Kevin Menard</name>
			<email>kmenard@apache.org</email>
			<roles>
				<role>PMC, Member</role>
			</roles>
			<timezone>-5</timezone>
		</developer>
		<developer>
			<id>amaniatis</id>
			<name>Aristedes Maniatis</name>
			<email>ari@ish.com.au</email>
			<organization>ish</organization>
			<roles>
				<role>PMC, Member</role>
			</roles>
			<timezone>+10</timezone>
		</developer>
		<developer>
			<id>andrey</id>
			<name>Andrey Razumovsky</name>
			<email>andrey@apache.org</email>
			<roles>
				<role>PMC, Member</role>
			</roles>
			<timezone>+3</timezone>
		</developer>
		<developer>
			<name>Olga Tkachova</name>
			<organization>ObjectStyle</organization>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<id>evgeny</id>
			<name>Evgeny Ryabitskiy</name>
			<organization>Diasoft</organization>
			<roles>
				<role>Committer</role>
			</roles>
			<timezone>+3</timezone>
		</developer>
		<developer>
			<id>dkazimirchyk</id>
			<name>Dzmitry Kazimirchyk</name>
			<email>dkazimirchyk@apache.org</email>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<id>johnthuss</id>
			<name>John Huss</name>
			<email>johnthuss@apache.org</email>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<id>kolonitsky</id>
			<name>Alex Kolonitsky</name>
			<email>kolonitsky@apache.org</email>
            <organization>ObjectStyle</organization>
			<roles>
				<role>Committer</role>
			</roles>
            <timezone>+3</timezone>
		</developer>
		<developer>
			<id>skolbachev</id>
			<name>Savva Kolbachev</name>
			<email>skolbachev@apache.org</email>
			<organization>ObjectStyle</organization>
			<roles>
				<role>Committer</role>
			</roles>
			<timezone>+3</timezone>
		</developer>
		<developer>
			<id>ntimofeev</id>
			<name>Nikita Timofeev</name>
			<email>ntimofeev@apache.org</email>
			<organization>ObjectStyle</organization>
			<roles>
				<role>Committer</role>
			</roles>
			<timezone>+3</timezone>
		</developer>
		<developer>
			<name>Hugi Þórðarson</name>
			<email>hugi@karlmenn.is</email>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
		<developer>
			<id>abulatski</id>
			<name>Arseni Bulatski</name>
			<email>abulatski@apache.org</email>
			<organization>ObjectStyle</organization>
			<roles>
				<role>Committer</role>
			</roles>
		</developer>
	</developers>
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<scm>
		<connection>scm:git:https://git-wip-us.apache.org/repos/asf/cayenne.git</connection>
		<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/cayenne.git</developerConnection>
		<url>https://github.com/apache/cayenne</url>
		<tag>4.1</tag>
	</scm>
	<organization>
		<name>Apache Cayenne</name>
		<url>http://cayenne.apache.org/</url>
	</organization>
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.apache.ant</groupId>
				<artifactId>ant</artifactId>
				<version>${ant.version}</version>
				<scope>provided</scope>
				<exclusions>
					<exclusion>
						<groupId>xerces</groupId>
						<artifactId>xerces</artifactId>
					</exclusion>
					<exclusion>
						<groupId>xml-apis</groupId>
						<artifactId>xml-apis</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.apache.ant</groupId>
				<artifactId>ant-junit</artifactId>
				<version>${ant.version}</version>
				<scope>test</scope>
				<exclusions>
					<exclusion>
						<groupId>xerces</groupId>
						<artifactId>xerces</artifactId>
					</exclusion>
					<exclusion>
						<groupId>xml-apis</groupId>
						<artifactId>xml-apis</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.apache.ant</groupId>
				<artifactId>ant-testutil</artifactId>
				<version>${ant.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-dbcp2</artifactId>
                <version>2.2.0</version>
            </dependency>
            <dependency>
                <groupId>com.caucho</groupId>
                <artifactId>hessian</artifactId>
                <version>4.0.51</version>
                <scope>provided</scope>
            </dependency>
			<dependency>
				<groupId>com.jgoodies</groupId>
				<artifactId>forms</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>com.jgoodies</groupId>
				<artifactId>jgoodies-looks</artifactId>
				<version>2.7.0</version>
			</dependency>
			<dependency>
				<groupId>com.mockrunner</groupId>
				<artifactId>mockrunner-jdbc</artifactId>
				<version>1.1.2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>com.mockrunner</groupId>
				<artifactId>mockrunner-servlet</artifactId>
				<version>1.1.2</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>ognl</groupId>
				<artifactId>ognl</artifactId>
				<version>2.6.7</version>
			</dependency>
			<dependency>
				<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
				<version>2.5</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-core</artifactId>
				<version>1.2.6</version>
				<scope>test</scope>
				<exclusions>
					<exclusion>
						<groupId>xerces</groupId>
						<artifactId>xerces</artifactId>
					</exclusion>
					<exclusion>
						<groupId>xml-apis</groupId>
						<artifactId>xml-apis</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
			<dependency>
				<groupId>org.springframework</groupId>
				<artifactId>spring-mock</artifactId>
				<version>2.0.8</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.velocity</groupId>
				<artifactId>velocity-engine-core</artifactId>
				<version>2.0</version>
			</dependency>
			<dependency>
				<groupId>foundrylogic.vpp</groupId>
				<artifactId>vpp</artifactId>
				<version>2.2.1</version>
			</dependency>
			<dependency>
				<groupId>jgraph</groupId>
				<artifactId>jgraph</artifactId>
				<version>5.13.0.0</version>
			</dependency>
			<dependency>
				<groupId>net.java.dev.inflector</groupId>
				<artifactId>inflector</artifactId>
				<version>0.7.0</version>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>4.12</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.mockito</groupId>
				<artifactId>mockito-core</artifactId>
				<version>2.23.4</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>net.sf.ehcache</groupId>
				<artifactId>ehcache-core</artifactId>
				<version>2.4.3</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.hsqldb</groupId>
				<artifactId>hsqldb</artifactId>
				<version>2.3.6</version>
				<scope>test</scope>
			</dependency>
			<dependency>
            	<groupId>org.apache.derby</groupId>
            	<artifactId>derby</artifactId>
            	<version>10.14.2.0</version>
            	<scope>test</scope>
        	</dependency>
        	<dependency>
           		<groupId>xmlunit</groupId>
            	<artifactId>xmlunit</artifactId>
            	<version>1.6</version>
            	<scope>test</scope>
        	</dependency>
			<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${slf4j.version}</version>
			</dependency>
			<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-simple</artifactId>
    			<version>${slf4j.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>jgroups</groupId>
				<artifactId>jgroups-all</artifactId>
				<version>2.2.7</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>jivesoftware</groupId>
				<artifactId>smack</artifactId>
				<version>2.2.1</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>jivesoftware</groupId>
				<artifactId>smackx</artifactId>
				<version>2.2.1</version>
				<scope>provided</scope>
			</dependency>
			<dependency>
				<groupId>org.apache.geronimo.specs</groupId>
				<artifactId>geronimo-jms_1.1_spec</artifactId>
				<version>1.1.1</version>
				<scope>provided</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<repositories>
		<repository>
			<id>objectstyle</id>
			<name>ObjectStyle Repository</name>
			<url>https://maven.objectstyle.org/nexus/content/groups/cayenne-deps</url>
			<layout>default</layout>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>
		<repository>
			<id>apache.snapshots</id>
			<name>Apache Snapshot Repository</name>
			<url>https://repository.apache.org/snapshots</url>
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>objectstyle</id>
			<name>ObjectStyle repository</name>
			<url>https://maven.objectstyle.org/nexus/content/groups/cayenne-deps</url>
			<layout>default</layout>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</pluginRepository>
	</pluginRepositories>
	<build>
		<defaultGoal>install</defaultGoal>

		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh</artifactId>
				<version>2.12</version>
			</extension>
		</extensions>

		<pluginManagement>
			<plugins>
				<!-- M2Eclipse configuration. Has no effect for command line builds -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-antrun-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>run</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.felix</groupId>
  										<artifactId>maven-bundle-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>manifest</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>com.agilejava.docbkx</groupId>
										<artifactId>docbkx-maven-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>generate-pdf</goal>
											<goal>generate-html</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-remote-resources-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>bundle</goal>
											<goal>process</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.codehaus.mojo</groupId>
										<artifactId>dependency-maven-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>unpack</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-javadoc-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>javadoc</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.objectstyle.japp</groupId>
										<artifactId>japp-maven-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>japp</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.codehaus.mojo</groupId>
										<artifactId>javacc-maven-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>jjtree-javacc</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.cayenne.plugins</groupId>
										<artifactId>cayenne-maven-plugin</artifactId>
										<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>cgen</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
                    					<artifactId>maven-checkstyle-plugin</artifactId>
                    					<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>check</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
                    					<artifactId>maven-pmd-plugin</artifactId>
                    					<versionRange>[1.0,)</versionRange>
										<goals>
											<goal>check</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-plugin-plugin</artifactId>
                                        <versionRange>[1.0,)</versionRange>
                                        <goals>
                                            <goal>descriptor</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-plugin-plugin</artifactId>
                    <version>3.6.0</version>
                </plugin>
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.0</version>
					<configuration>
						<source>1.8</source>
						<target>1.8</target>
						<encoding>UTF-8</encoding>
					</configuration>
				</plugin>
				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-release-plugin</artifactId>
					<version>2.5.3</version>
				</plugin>
				<plugin>
					<artifactId>maven-jxr-plugin</artifactId>
					<version>2.5</version>
				</plugin>
				<plugin>
					<artifactId>maven-pmd-plugin</artifactId>
					<version>3.8</version>
				</plugin>
				<plugin>
					<artifactId>maven-checkstyle-plugin</artifactId>
					<version>3.0.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-enforcer-plugin</artifactId>
					<version>1.4.1</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>exec-maven-plugin</artifactId>
					<version>1.6.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-project-info-reports-plugin</artifactId>
					<version>2.9</version>
				</plugin>
				<plugin>
					<artifactId>maven-source-plugin</artifactId>
					<version>3.0.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-assembly-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-antrun-plugin</artifactId>
					<version>1.7</version>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.1</version>
				</plugin>
				<plugin>   
					<groupId>org.apache.felix</groupId>
  					<artifactId>maven-bundle-plugin</artifactId>
					<version>3.3.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-report-plugin</artifactId>
					<version>2.22.1</version>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>taglist-maven-plugin</artifactId>
					<version>2.4</version>
				</plugin>
				<plugin>
					<artifactId>maven-remote-resources-plugin</artifactId>
					<version>1.5</version>
					<configuration>
						<outputDirectory>
								${project.build.directory}/classes
						</outputDirectory>
						<resourceBundles>
							<resourceBundle>
								org.apache.cayenne.build-tools:cayenne-legal:${project.version}
							</resourceBundle>
						</resourceBundles>
					</configuration>
				</plugin>
				<plugin>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>3.0.1</version>
					<configuration>
						<!-- Java 8 is too strict about Javadoc omissions --> 
						<doclint>${javadoc.doclint}</doclint>
						<additionalOptions>${javadoc.additionalOptions}</additionalOptions>
						<source>1.8</source>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>dependency-maven-plugin</artifactId>
					<version>1.0</version>
				</plugin>
				<plugin>
					<groupId>org.apache.rat</groupId>
					<artifactId>apache-rat-plugin</artifactId>
					<version>0.11</version>
				</plugin>
				<plugin>
					<groupId>org.objectstyle.japp</groupId>
					<artifactId>japp-maven-plugin</artifactId>
					<version>3.1</version>
				</plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>2.22.1</version>
                    <executions>
                        <execution>
                            <id>integration-test</id>
                            <goals>
                                <goal>integration-test</goal>
                                <goal>verify</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>
                <plugin>
                    <groupId>io.fabric8</groupId>
                    <artifactId>docker-maven-plugin</artifactId>
                    <version>0.29.0</version>
                </plugin>
            </plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<artifactId>maven-source-plugin</artifactId>
				<executions>
					<execution>
						<id>bundle-source-jar</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<argLine>
						-DcayenneTestConnection=${cayenneTestConnection} -Djava.net.preferIPv4Stack=true -Dcayenne.runtime.db.collation.assume.ci=${collationCi}
					</argLine>
					<systemPropertyVariables>
						<property>
							<name>cayenneAdapter</name>
							<value>${cayenneAdapter}</value>
						</property>
						<property>
							<name>cayenneJdbcUsername</name>
							<value>${cayenneJdbcUsername}</value>
						</property>
						<property>
							<name>cayenneJdbcPassword</name>
							<value>${cayenneJdbcPassword}</value>
						</property>
						<property>
							<name>cayenneJdbcUrl</name>
							<value>${cayenneJdbcUrl}</value>
						</property>
						<property>
							<name>cayenneJdbcDriver</name>
							<value>${cayenneJdbcDriver}</value>
						</property>
                        <org.slf4j.simpleLogger.defaultLogLevel>${cayenneLogLevel}</org.slf4j.simpleLogger.defaultLogLevel>
					</systemPropertyVariables>
				</configuration>
			</plugin>
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <org.slf4j.simpleLogger.defaultLogLevel>${cayenneLogLevel}</org.slf4j.simpleLogger.defaultLogLevel>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<encoding>UTF-8</encoding>
				</configuration>
			</plugin>
			<plugin>
                <!-- TOOD move to release plugin -->
				<groupId>org.apache.rat</groupId>
				<artifactId>apache-rat-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>build/**/*</exclude>
                        <exclude>**/.*</exclude>
                        <exclude>**/.*/**</exclude>

                        <exclude>**/cayenne-*.xml</exclude>
                        <exclude>**/cayenne.xml</exclude>
                        <exclude>**/*.map.xml</exclude>
						<exclude>**/*.graph.xml</exclude>
                        <exclude>**/_*.java</exclude>
                        <exclude>**/*.html</exclude>
                        <exclude>**/*.css</exclude>
                        <exclude>**/*.driver.xml</exclude>

                        <exclude>**/test/**/ks1.jceks</exclude>
                        <exclude>**/test/**/plain.txt</exclude>

                        <exclude>**/DiagramLayout</exclude>
                        <exclude>**/*.plist</exclude>
                        <exclude>**/*.eomodeld</exclude>
                        <exclude>**/*.fspec</exclude>

                        <exclude>**/*.log</exclude>
                        <exclude>**/*.iml</exclude>
					</excludes>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
						    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<distributionManagement>
		<repository>
			<id>apache-releases</id>
			<name>Apache Release Distribution Repository</name>
			<url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
		</repository>
		<snapshotRepository>
			<id>apache.snapshots.https</id>
			<name>Apache Development Snapshot Repository</name>
			<url>https://repository.apache.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<profile>
			<id>code-quality</id>

			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-checkstyle-plugin</artifactId>
						<configuration>
							<skip>false</skip>
							<consoleOutput>false</consoleOutput>
							<enableRulesSummary>false</enableRulesSummary>
							<failOnViolation>false</failOnViolation>
							<!-- TODO make it 'true' when we will be ready -->
							<violationSeverity>warning</violationSeverity>
							<configLocation>build-tools/cayenne-checkers/src/main/resources/cayenne-checkstyle.xml</configLocation>
							<suppressionsLocation>build-tools/cayenne-checkers/src/main/resources/cayenne-checkstyle-suppression.xml</suppressionsLocation>
						</configuration>
						<executions>
							<execution>
								<phase>process-sources</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-pmd-plugin</artifactId>
						<configuration>
							<skip>false</skip>
							<sourceEncoding>utf-8</sourceEncoding>
							<targetJdk>1.8</targetJdk>
							<verbose>true</verbose>
							<failOnViolation>false</failOnViolation>
							<!-- TODO make it 'true' when we will be ready -->
							<failurePriority>2</failurePriority>
							<rulesets>
								<!-- go back on one dir to parent project -->
								<ruleset>/cayenne-pmd.xml</ruleset>
							</rulesets>
							<excludes>
								<exclude>**/ParseException.java</exclude>
								<exclude>**/Token.java</exclude>
								<exclude>**/TokenMgrError.java</exclude>
								<exclude>**/ParseException.java</exclude>
								<exclude>**/Parser.java.java</exclude>
								<exclude>**/ParserConstants.java</exclude>
								<exclude>**/ParserTokenManager.java</exclude>
								<exclude>**/SimpleCharStream.java</exclude>
								<exclude>**/TokenMgrError.java</exclude>
								<exclude>org/apache/cayenne/ejbql/parser/*</exclude>
								<exclude>org/apache/cayenne/exp/parser/*</exclude>
								<exclude>org/apache/cayenne/template/parser/*</exclude>
							</excludes>
						</configuration>
						<executions>
							<execution>
								<phase>process-sources</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>
						<dependencies>
							<dependency>
								<groupId>org.apache.cayenne.build-tools</groupId>
								<artifactId>cayenne-checkers</artifactId>
								<version>${project.version}</version>
							</dependency>
						</dependencies>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>clirr-maven-plugin</artifactId>
						<version>2.8</version>
						<configuration>
							<comparisonVersion>3.1RC1</comparisonVersion>
							<minSeverity>info</minSeverity>
							<logResults>true</logResults>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>jdepend-maven-plugin</artifactId>
						<version>2.0</version>
					</plugin>
				</plugins>
			</build>

			<reporting>
				<plugins>
					<plugin>
						<artifactId>maven-checkstyle-plugin</artifactId>
						<inherited>true</inherited>
					</plugin>
					<plugin>
						<artifactId>maven-pmd-plugin</artifactId>
						<inherited>true</inherited>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>findbugs-maven-plugin</artifactId>
						<configuration>
							<effort>Max</effort>
							<threshold>Low</threshold>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>jdepend-maven-plugin</artifactId>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>clirr-maven-plugin</artifactId>
					</plugin>
				</plugins>
			</reporting>
		</profile>


		<profile>
			<id>code-coverage</id>
			<properties>
				<jacoco.it.execution.data.file>${project.build.directory}/coverage-reports/jacoco-it.exec</jacoco.it.execution.data.file>
				<jacoco.ut.execution.data.file>${project.build.directory}/coverage-reports/jacoco-ut.exec</jacoco.ut.execution.data.file>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<version>0.8.0</version>
						<executions>
							<execution>
								<id>pre-unit-test</id>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
								<configuration>
									<destFile>${jacoco.ut.execution.data.file}</destFile>
									<propertyName>surefireArgLine</propertyName>
								</configuration>
							</execution>
							<execution>
								<id>post-unit-test</id>
								<phase>test</phase>
								<goals>
									<goal>report</goal>
								</goals>
								<configuration>
									<dataFile>${jacoco.ut.execution.data.file}</dataFile>
									<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
								</configuration>
							</execution>

							<execution>
								<id>pre-integration-test</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
								<configuration>
									<destFile>${jacoco.it.execution.data.file}</destFile>
									<propertyName>failsafeArgLine</propertyName>
								</configuration>
							</execution>

							<execution>
								<id>post-integration-test</id>
								<phase>post-integration-test</phase>
								<goals>
									<goal>report</goal>
								</goals>
								<configuration>
									<dataFile>${jacoco.it.execution.data.file}</dataFile>
									<outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
								</configuration>
							</execution>
						</executions>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<argLine>${surefireArgLine}</argLine>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<executions>
							<execution>
								<id>integration-tests</id>
								<goals>
									<goal>integration-test</goal>
									<goal>verify</goal>
								</goals>
								<configuration>
									<argLine>${failsafeArgLine}</argLine>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>


		<!-- Optional profile used to sign artifacts -->
		<profile>
			<id>gpg</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- DB profiles .. 
				HSQL is used if no DB profile property is set explicitly.
				Also there's a separate 'hsql' profile.
		-->
		<profile>
			<id>default-db</id>
			<activation>
				<property>
					<name>!cayenneTestConnection</name>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.hsqldb</groupId>
					<artifactId>hsqldb</artifactId>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>hsql</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>hsql</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.hsqldb</groupId>
					<artifactId>hsqldb</artifactId>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>firebird</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>firebird</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.firebirdsql.jdbc</groupId>
					<artifactId>jaybird-jdk18</artifactId>
					<version>3.0.3</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>frontbase</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>frontbase</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.frontbase</groupId>
					<artifactId>frontbase-driver</artifactId>
					<version>4.1</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>openbase</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>openbase</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.openbase</groupId>
					<artifactId>openbase-driver</artifactId>
					<version>9</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>h2</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>h2</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.h2database</groupId>
					<artifactId>h2</artifactId>
					<version>1.4.195</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>mysql</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>mysql</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>mysql</groupId>
					<artifactId>mysql-connector-java</artifactId>
					<version>5.1.42</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>mysql-docker</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>mysql-docker</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>mysql</groupId>
					<artifactId>mysql-connector-java</artifactId>
					<version>5.1.42</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<configuration>
							<systemPropertyVariables>
								<!-- See https://hub.docker.com/_/mysql/ for details-->
								<!-- ${db.host} and ${db.port} are dynamically set by docker-maven-plugin below -->
								<cayenneAdapter>org.apache.cayenne.dba.mysql.MySQLAdapter</cayenneAdapter>
								<cayenneJdbcUsername>root</cayenneJdbcUsername>
								<cayenneJdbcPassword />
								<cayenneJdbcUrl>jdbc:mysql://${db.host}:${db.port}/cayenne?useUnicode=true&amp;characterEncoding=UTF-8&amp;generateSimpleParameterMetadata=true&amp;useSSL=false</cayenneJdbcUrl>
								<cayenneJdbcDriver>com.mysql.jdbc.Driver</cayenneJdbcDriver>
							</systemPropertyVariables>
						</configuration>
					</plugin>
					<plugin>
						<groupId>io.fabric8</groupId>
						<artifactId>docker-maven-plugin</artifactId>
						<configuration>
							<images>
								<image>
									<alias>db</alias>
									<name>mysql:5.7</name>
									<run>
										<ports>
											<port>${db.host}:${db.port}:3306</port>
										</ports>
										<wait>
											<log>MySQL init process done. Ready for start up.</log>
											<time>60000</time>
										</wait>
										<env>
											<MYSQL_ALLOW_EMPTY_PASSWORD>yes</MYSQL_ALLOW_EMPTY_PASSWORD>
											<MYSQL_DATABASE>cayenne</MYSQL_DATABASE>
										</env>
										<cmd>
											--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
										</cmd>
									</run>
								</image>
							</images>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>mariadb-docker</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>mariadb-docker</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>mysql</groupId>
					<artifactId>mysql-connector-java</artifactId>
					<version>5.1.42</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<configuration>
							<systemPropertyVariables>
								<!-- See https://hub.docker.com/_/mariadb/ for details-->
								<!-- ${db.host} and ${db.port} are dynamically set by docker-maven-plugin below -->
								<cayenneAdapter>org.apache.cayenne.dba.mysql.MySQLAdapter</cayenneAdapter>
								<cayenneJdbcUsername>root</cayenneJdbcUsername>
								<cayenneJdbcPassword />
								<cayenneJdbcUrl>jdbc:mysql://${db.host}:${db.port}/cayenne?useUnicode=true&amp;characterEncoding=UTF-8&amp;generateSimpleParameterMetadata=true&amp;useSSL=false</cayenneJdbcUrl>
								<cayenneJdbcDriver>com.mysql.jdbc.Driver</cayenneJdbcDriver>
							</systemPropertyVariables>
						</configuration>
					</plugin>
					<plugin>
						<groupId>io.fabric8</groupId>
						<artifactId>docker-maven-plugin</artifactId>
						<configuration>
							<images>
								<image>
									<alias>db</alias>
									<name>mariadb:10.4</name>
									<run>
										<ports>
											<port>${db.host}:${db.port}:3306</port>
										</ports>
										<wait>
											<log>MySQL init process done. Ready for start up.</log>
											<time>60000</time>
										</wait>
										<env>
											<MYSQL_ALLOW_EMPTY_PASSWORD>yes</MYSQL_ALLOW_EMPTY_PASSWORD>
											<MYSQL_DATABASE>cayenne</MYSQL_DATABASE>
										</env>
										<cmd>
											--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
										</cmd>
									</run>
								</image>
							</images>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>oracle</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>oracle</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.oracle</groupId>
					<artifactId>oracle-driver</artifactId>
					<version>11</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>postgres</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>postgres</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.postgresql</groupId>
					<artifactId>postgresql</artifactId>
					<version>9.4.1212.jre7</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>postgres-docker</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>postgres-docker</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.postgresql</groupId>
					<artifactId>postgresql</artifactId>
					<version>9.4.1212.jre7</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<configuration>
							<systemPropertyVariables>
								<!-- Default user, password, and DB name is "postgres", see https://hub.docker.com/_/postgres/ -->
								<!-- ${db.host} and ${db.port} are dynamically set by docker-maven-plugin below -->
								<cayenneAdapter>org.apache.cayenne.dba.postgres.PostgresAdapter</cayenneAdapter>
								<cayenneJdbcUsername>postgres</cayenneJdbcUsername>
								<cayenneJdbcPassword>postgres</cayenneJdbcPassword>
								<cayenneJdbcUrl>jdbc:postgresql://${db.host}:${db.port}/postgres</cayenneJdbcUrl>
								<cayenneJdbcDriver>org.postgresql.Driver</cayenneJdbcDriver>
							</systemPropertyVariables>
						</configuration>
					</plugin>
					<plugin>
						<groupId>io.fabric8</groupId>
						<artifactId>docker-maven-plugin</artifactId>
						<configuration>
							<images>
								<image>
									<alias>db</alias>
									<name>postgres:12</name>
									<run>
										<env>
											<POSTGRES_HOST_AUTH_METHOD>trust</POSTGRES_HOST_AUTH_METHOD>
										</env>
										<ports>
											<port>${db.host}:${db.port}:5432</port>
										</ports>
										<wait>
											<log>PostgreSQL init process complete; ready for start up.</log>
											<time>60000</time>
										</wait>
									</run>
								</image>
							</images>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>derby</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>derby</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.apache.derby</groupId>
					<artifactId>derby</artifactId>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>sqlserver</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>sqlserver</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.microsoft.sqlserver</groupId>
					<artifactId>mssql-jdbc</artifactId>
					<version>7.0.0.jre8</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>sqlserver-docker</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>sqlserver-docker</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.microsoft.sqlserver</groupId>
					<artifactId>mssql-jdbc</artifactId>
					<version>7.0.0.jre8</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-failsafe-plugin</artifactId>
						<configuration>
							<systemPropertyVariables>
								<!-- ${db.host} and ${db.port} are dynamically set by docker-maven-plugin below -->
								<cayenneAdapter>org.apache.cayenne.dba.sqlserver.SQLServerAdapter</cayenneAdapter>
								<cayenneJdbcUsername>sa</cayenneJdbcUsername>
								<cayenneJdbcPassword>Cayenne#123</cayenneJdbcPassword>
								<cayenneJdbcUrl>jdbc:sqlserver://${sqlserver.host}:${sqlserver.port};</cayenneJdbcUrl>
								<cayenneJdbcDriver>com.microsoft.sqlserver.jdbc.SQLServerDriver</cayenneJdbcDriver>
								<cayenne.runtime.db.collation.assume.ci>true</cayenne.runtime.db.collation.assume.ci>
							</systemPropertyVariables>
						</configuration>
					</plugin>
					<plugin>
						<groupId>io.fabric8</groupId>
						<artifactId>docker-maven-plugin</artifactId>
						<configuration>
							<verbose>true</verbose>
							<images>
								<image>
									<alias>sqlserver</alias>
									<name>microsoft/mssql-server-linux:2017-latest</name>
									<run>
										<ports>
											<port>${sqlserver.host}:${sqlserver.port}:1433</port>
										</ports>
										<env>
											<ACCEPT_EULA>Y</ACCEPT_EULA>
											<SA_PASSWORD>Cayenne#123</SA_PASSWORD>
										</env>
										<wait>
											<log>SQL Server is now ready for client connections.</log>
											<time>60000</time>
										</wait>
										<cmd>/opt/mssql/bin/sqlservr</cmd>
									</run>
								</image>
							</images>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>ingres</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>ingres</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.ingres</groupId>
					<artifactId>ingres-driver</artifactId>
					<version>4.0.7</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>sybase</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>sybase</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.sybase</groupId>
					<artifactId>sybase-driver</artifactId>
					<version>12</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>sqlite</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>sqlite</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>org.xerial</groupId>
					<artifactId>sqlite-jdbc</artifactId>
					<version>3.25.2</version>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>db2</id>
			<activation>
				<property>
					<name>cayenneTestConnection</name>
					<value>db2</value>
				</property>
			</activation>
			<dependencies>
				<dependency>
					<groupId>com.ibm.db2</groupId>
					<artifactId>db2-driver</artifactId>
					<version>1.0</version>
					<scope>test</scope>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>java8-disable-strict-javadoc</id>
			<activation>
				<jdk>[1.8,)</jdk>
			</activation>
			<properties>
				<javadoc.doclint>none</javadoc.doclint>
				<javadoc.additionalOptions />
			</properties>
		</profile>
		<profile>
			<id>java9-javadoc-html5</id>
			<activation>
				<jdk>[9,)</jdk>
			</activation>
			<properties>
				<javadoc.additionalOptions>-html5</javadoc.additionalOptions>
			</properties>
		</profile>
	</profiles>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.5</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.20</version>
            </plugin>
        </plugins>
    </reporting>
</project>
