| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>org.apache.sling</groupId> |
| <artifactId>simple-it</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| |
| <description>A simple IT verifying starting and stopping.</description> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| <version>5.6.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>5.6.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.13</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>8</source> |
| <target>8</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.2.0</version> |
| <executions> |
| <execution> |
| <id>reserve-network-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> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingfeature-maven-plugin</artifactId> |
| <version>1.3.6</version> |
| <extensions>true</extensions> |
| <!-- TODO - seems we can't attach non-aggregates --> |
| <configuration> |
| <aggregates> |
| <aggregate> |
| <classifier>main</classifier> |
| <filesInclude>model.json</filesInclude> |
| </aggregate> |
| </aggregates> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>attach-features</goal> |
| <goal>aggregate-features</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>@project.groupId@</groupId> |
| <artifactId>@project.artifactId@</artifactId> |
| <version>@project.version@</version> |
| <configuration> |
| <!-- pin this at the 1.1.26 version to test launching |
| using the pre SLING-10956 technique --> |
| <featureLauncherVersion>1.1.26</featureLauncherVersion> |
| <launches> |
| <launch> |
| <id>model</id> |
| <feature> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>simple-it</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| <classifier>main</classifier> |
| <type>slingosgifeature</type> |
| </feature> |
| <launcherArguments> |
| <vmOptions> |
| <value>-DTEST_VM_OPTION=TEST_VM_OPTION_VALUE</value> |
| </vmOptions> |
| <frameworkProperties> |
| <org.osgi.service.http.port>${http.port}</org.osgi.service.http.port> |
| </frameworkProperties> |
| <variables> |
| <TEST_VARIABLE>TEST_VALUE</TEST_VARIABLE> |
| </variables> |
| </launcherArguments> |
| <startTimeoutSeconds>180</startTimeoutSeconds> |
| </launch> |
| </launches> |
| <toLaunch> |
| </toLaunch> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>start</goal> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>2.22.2</version> |
| <configuration> |
| <systemPropertyVariables> |
| <HTTP_PORT>${http.port}</HTTP_PORT> |
| <build.log.file>${project.build.directory}/../build.log</build.log.file> |
| </systemPropertyVariables> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |