| <?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>33</version> |
| <relativePath/> |
| </parent> |
| |
| <artifactId>sling-org-apache-sling-servlets-annotations-it</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| |
| <name>Apache Sling Servlets Annotations IT</name> |
| <description> |
| Integration tests for OSGi DS 1.4 component property type annotations for Sling servlets and filters |
| </description> |
| |
| <scm> |
| <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-annotations-it.git</connection> |
| <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-annotations-it.git</developerConnection> |
| <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-servlets-annotations-it.git</url> |
| <tag>HEAD</tag> |
| </scm> |
| |
| <!-- compile with java 7 --> |
| <properties> |
| <sling.java.version>8</sling.java.version> |
| <http.host>localhost</http.host> |
| <!-- start with -DkeepITServerRunning=true to allow to rerun ITs or inspect the server after the ITs have been executed there --> |
| <keepITServerRunning>false</keepITServerRunning> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>biz.aQute.bnd</groupId> |
| <artifactId>bnd-maven-plugin</artifactId> |
| <version>4.0.0</version> |
| </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>pre-integration-test</phase> |
| <configuration> |
| <portNames> |
| <!-- used port name must be stored in property because it must be used for the base url --> |
| <portName>http.port</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- the Sling instance is provisioned from the model in src/main/provisioning/model.txt --> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingstart-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <id>start-container-before-IT</id> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| <configuration> |
| <launchpadDependency> |
| <artifactId>org.apache.sling.launchpad</artifactId> |
| <groupId>org.apache.sling</groupId> |
| <version>9</version> |
| </launchpadDependency> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop-container-after-IT</id> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| <configuration> |
| <shouldBlockUntilKeyIsPressed>${keepITServerRunning}</shouldBlockUntilKeyIsPressed> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <servers> |
| <!-- this configuration applies to both 'start' and 'stop' --> |
| <server> |
| <id>singleinstance</id> |
| <port>${http.port}</port> |
| <vmOpts>${sling.vm.options}</vmOpts> |
| <stdOutFile>sling/logs/stdout.log</stdOutFile> |
| </server> |
| </servers> |
| <!-- this configuration only applies to 'prepare-package' and 'package' --> |
| <!-- <disableExtendingMavenClasspath>true</disableExtendingMavenClasspath> --> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <systemPropertyVariables> |
| <baseUrl>http://${http.host}:${http.port}/</baseUrl> |
| <bundleFile>${project.build.directory}/${project.build.finalName}.jar</bundleFile> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.service.component.annotations</artifactId> |
| <version>1.3.0</version><!-- to be compliant with DS 1.3 --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.api</artifactId> |
| <!-- https://issues.apache.org/jira/browse/SLING-6327 --> |
| <version>2.16.4</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>sling-org-apache-sling-servlets-annotations</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| </dependency> |
| |
| <!-- testing dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.rules</artifactId> |
| <version>1.0.8</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| </project> |