| <?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> | |
| <parent> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>sling</artifactId> | |
| <version>26</version> | |
| <relativePath /> | |
| </parent> | |
| <artifactId>org.apache.sling.resourcebuilder</artifactId> | |
| <version>1.0.2</version> | |
| <packaging>bundle</packaging> | |
| <name>Apache Sling Resource Builder</name> | |
| <description>Utilities to create Sling content</description> | |
| <properties> | |
| <!-- Set this to run the server on a specific port | |
| <http.port></http.port> | |
| --> | |
| <!-- Set this to run tests against an existing server instance --> | |
| <keepJarRunning>false</keepJarRunning> | |
| <!-- | |
| Options for the VM that executes our runnable jar. | |
| Set debugging options here to debug teleported tests. | |
| --> | |
| <jar.executor.vm.options>-Xmx512m</jar.executor.vm.options> | |
| <!-- Options for the jar to execute. $JAREXEC_SERVER_PORT$ is replaced by the | |
| selected port number --> | |
| <jar.executor.jar.options>-p $JAREXEC_SERVER_PORT$</jar.executor.jar.options> | |
| </properties> | |
| <scm> | |
| <connection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.resourcebuilder-1.0.2</connection> | |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.resourcebuilder-1.0.2</developerConnection> | |
| <url>https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.resourcebuilder-1.0.2</url> | |
| </scm> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-bundle-plugin</artifactId> | |
| <extensions>true</extensions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.felix</groupId> | |
| <artifactId>maven-scr-plugin</artifactId> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.rat</groupId> | |
| <artifactId>apache-rat-plugin</artifactId> | |
| <configuration> | |
| <excludes> | |
| <exclude>src/test/resources/**</exclude> | |
| <exclude>sling/**</exclude> | |
| <exclude>infinitest.filters</exclude> | |
| </excludes> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <!-- Find free ports to run our server --> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>build-helper-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>reserve-server-port</id> | |
| <goals> | |
| <goal>reserve-network-port</goal> | |
| </goals> | |
| <phase>process-resources</phase> | |
| <configuration> | |
| <portNames> | |
| <portName>http.port</portName> | |
| </portNames> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-clean-plugin</artifactId> | |
| <configuration> | |
| <filesets> | |
| <fileset> | |
| <directory>${basedir}</directory> | |
| <includes> | |
| <!-- sling folder is the workdir of the executable jar that we test --> | |
| <include>sling/**</include> | |
| </includes> | |
| </fileset> | |
| </filesets> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-failsafe-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>integration-test</id> | |
| <goals> | |
| <goal>integration-test</goal> | |
| </goals> | |
| </execution> | |
| <execution> | |
| <id>verify</id> | |
| <goals> | |
| <goal>verify</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <systemPropertyVariables> | |
| <!-- these are the minimal options required for the jar executor, see bundle-with-it module for more --> | |
| <keepJarRunning>${keepJarRunning}</keepJarRunning> | |
| <jar.executor.jar.options>${jar.executor.jar.options}</jar.executor.jar.options> | |
| <jar.executor.vm.options>${jar.executor.vm.options}</jar.executor.vm.options> | |
| <jar.executor.server.port>${http.port}</jar.executor.server.port> | |
| <additional.bundles.path>${project.build.directory}</additional.bundles.path> | |
| <server.ready.path.1>/:script src="system/sling.js"</server.ready.path.1> | |
| <server.ready.path.2>/.explorer.html:href="/libs/sling/explorer/css/explorer.css"</server.ready.path.2> | |
| <server.ready.path.3>/sling-test/sling/sling-test.html:Sling client library tests</server.ready.path.3> | |
| <!-- Additional bundles to install for testing --> | |
| <sling.additional.bundle.1>org.apache.sling.junit.core</sling.additional.bundle.1> | |
| <sling.additional.bundle.2>${project.artifactId}-${project.version}.jar</sling.additional.bundle.2> | |
| </systemPropertyVariables> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>copy-runnable-jar</id> | |
| <goals> | |
| <goal>copy-dependencies</goal> | |
| </goals> | |
| <phase>process-resources</phase> | |
| <configuration> | |
| <includeArtifactIds>org.apache.sling.launchpad</includeArtifactIds> | |
| <excludeTransitive>true</excludeTransitive> | |
| <overWriteReleases>false</overWriteReleases> | |
| <overWriteSnapshots>false</overWriteSnapshots> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <!-- | |
| Consider all dependencies as candidates to be installed | |
| as additional bundles. We use system properties to define | |
| which bundles to install in which order. | |
| --> | |
| <id>copy-additional-bundles</id> | |
| <goals> | |
| <goal>copy-dependencies</goal> | |
| </goals> | |
| <phase>process-resources</phase> | |
| <configuration> | |
| <outputDirectory>${project.build.directory}</outputDirectory> | |
| <excludeTransitive>true</excludeTransitive> | |
| <overWriteReleases>false</overWriteReleases> | |
| <overWriteSnapshots>false</overWriteSnapshots> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-simple</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.api</artifactId> | |
| <version>2.3.0</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.commons.mime</artifactId> | |
| <version>2.1.2</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-io</groupId> | |
| <artifactId>commons-io</artifactId> | |
| <version>2.4</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.testing.resourceresolver-mock</artifactId> | |
| <version>1.1.14</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>javax.servlet</groupId> | |
| <artifactId>javax.servlet-api</artifactId> | |
| <version>3.0.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.junit.core</artifactId> | |
| <version>1.0.18</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.testing.tools</artifactId> | |
| <version>1.0.14</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.junit.teleporter</artifactId> | |
| <version>1.0.8</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>1.10.19</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.sling</groupId> | |
| <artifactId>org.apache.sling.launchpad</artifactId> | |
| <version>8</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| </dependencies> | |
| </project> |