<?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> | |
<!-- ====================================================================== --> | |
<!-- P R O J E C T D E S C R I P T I O N --> | |
<!-- ====================================================================== --> | |
<parent> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>oak-parent</artifactId> | |
<version>1.6.22</version> | |
<relativePath>../../oak-parent/pom.xml</relativePath> | |
</parent> | |
<artifactId>oak-standalone</artifactId> | |
<name>Oak Standalone Example</name> | |
<description>Standalone application based on Spring Boot then embeds a Jackrabbit Oak content repository</description> | |
<properties> | |
<skip.deployment>true</skip.deployment> | |
<spring.boot.version>1.3.8.RELEASE</spring.boot.version> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-dependencies</artifactId> | |
<version>${spring.boot.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
<exclusions> | |
<exclusion> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-tomcat</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-jetty</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-actuator</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-devtools</artifactId> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.apache.felix.scr.annotations</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- For colored console logging --> | |
<dependency> | |
<groupId>org.fusesource.jansi</groupId> | |
<artifactId>jansi</artifactId> | |
<version>1.11</version> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>io.dropwizard.metrics</groupId> | |
<artifactId>metrics-core</artifactId> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>org.mongodb</groupId> | |
<artifactId>mongo-java-driver</artifactId> | |
<version>${mongo.driver.version}</version> | |
<optional>true</optional> | |
</dependency> | |
<!-- Required for the persistent cache --> | |
<dependency> | |
<groupId>com.h2database</groupId> | |
<artifactId>h2</artifactId> | |
<version>${h2.version}</version> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>javax.jcr</groupId> | |
<artifactId>jcr</artifactId> | |
<version>2.0</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.tika</groupId> | |
<artifactId>tika-parsers</artifactId> | |
<version>${tika.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
<exclusion> | |
<groupId>org.apache.httpcomponents</groupId> | |
<artifactId>httpcore</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>jackrabbit-jcr-server</artifactId> | |
<version>${jackrabbit.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>jackrabbit-jcr-servlet</artifactId> | |
<version>${jackrabbit.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>jackrabbit-jcr-rmi</artifactId> | |
<version>${jackrabbit.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>oak-jcr</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>oak-pojosr</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.jackrabbit</groupId> | |
<artifactId>oak-lucene</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.googlecode.json-simple</groupId> | |
<artifactId>json-simple</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-core</artifactId> | |
</dependency> | |
<!-- Required for Felix WebConsole --> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.apache.felix.http.proxy</artifactId> | |
<version>2.3.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.apache.felix.http.bridge</artifactId> | |
<version>2.3.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.apache.felix.webconsole</artifactId> | |
<version>4.2.10</version> | |
<classifier>all</classifier> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>org.apache.felix.webconsole.plugins.scriptconsole</artifactId> | |
<version>1.0.2</version> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-all</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- | |
Lucene jars are embedded in oak-lucene but IDE does not recognize them | |
being in classpath. So they need to be explicitly mentioned here | |
--> | |
<dependency> | |
<groupId>org.apache.lucene</groupId> | |
<artifactId>lucene-core</artifactId> | |
<version>${lucene.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.lucene</groupId> | |
<artifactId>lucene-analyzers-common</artifactId> | |
<version>${lucene.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.lucene</groupId> | |
<artifactId>lucene-queryparser</artifactId> | |
<version>${lucene.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.lucene</groupId> | |
<artifactId>lucene-queries</artifactId> | |
<version>${lucene.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.lucene</groupId> | |
<artifactId>lucene-suggest</artifactId> | |
<version>${lucene.version}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>${spring.boot.version}</version> | |
<configuration> | |
<!-- see https://stackoverflow.com/questions/42082131/maven-surefire-verify-java-lang-classnotfoundexception --> | |
<classifier>exec</classifier> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>repackage</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.rat</groupId> | |
<artifactId>apache-rat-plugin</artifactId> | |
<configuration> | |
<excludes> | |
<exclude>src/main/webapp/WEB-INF/log4j.dtd</exclude> | |
<exclude>src/main/webapp/WEB-INF/templates/repository-config.json</exclude> | |
<exclude>src/main/resources/config-templates/mongomk-config.json</exclude> | |
<exclude>src/main/resources/config-templates/repository-config.json</exclude> | |
<exclude>src/main/resources/config-templates/segmentmk-config.json</exclude> | |
<exclude>*.sh</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>oak</directory> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<configuration> | |
<systemPropertyVariables> | |
<java.util.logging.config.file> | |
src/test/resources/logging.properties | |
</java.util.logging.config.file> | |
</systemPropertyVariables> | |
</configuration> | |
<executions> | |
<execution> | |
<id>failsafe-integration-tests</id> | |
<phase>integration-test</phase> | |
<goals> | |
<goal>integration-test</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>failsafe-verify</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>disable-test-jdk6</id> | |
<activation> | |
<jdk>1.6</jdk> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<configuration> | |
<skipTests>true</skipTests> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<skipTests>true</skipTests> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |