| <?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"> |
| <parent> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.resolver.reactor</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>org.apache.sling.scripting.resolver.it</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <packaging>slingstart</packaging> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <!-- the Sling instance is provisioned from the model in src/test/provisioning/it-model.txt --> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingstart-maven-plugin</artifactId> |
| <version>1.7.16</version> |
| <extensions>true</extensions> |
| <configuration> |
| <usePomDependencies>true</usePomDependencies> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.resolver</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.runtime</artifactId> |
| <version>1.0.0-1.4.0-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.compiler</artifactId> |
| <version>1.1.0-1.4.0-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.compiler.java</artifactId> |
| <version>1.1.0-1.4.0-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly</artifactId> |
| <version>1.1.0-1.4.0-exp-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.js.provider</artifactId> |
| <version>1.0.27-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.sightly.models.provider</artifactId> |
| <version>1.0.7-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.examplebundle</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.examplebundle.precompiled</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.examplebundle.classic</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.scripting.examplebundle.hi</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.junit.teleporter</artifactId> |
| <version>1.0.16</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.clients</artifactId> |
| <version>1.1.12</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jsoup</groupId> |
| <artifactId>jsoup</artifactId> |
| <version>1.7.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.testing.rules</artifactId> |
| <version>1.0.6</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>it</id> |
| <properties> |
| <http.host>localhost</http.host> |
| <sling.vm.options>-Xmx1024m -XX:MaxPermSize=256m -Djava.awt.headless=true</sling.vm.options> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>reserve-network-port</id> |
| <goals> |
| <!-- pre-integration-test is too late --> |
| <goal>reserve-network-port</goal> |
| </goals> |
| <phase>process-resources</phase> |
| <configuration> |
| <portNames> |
| <portName>http.port.testing</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <argLine>@{argLine}</argLine> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>verify</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <systemPropertyVariables> |
| <launchpad.http.server.url>http://${http.host}:${http.port.testing}/</launchpad.http.server.url> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>${jacoco.maven.plugin.version}</version> |
| <executions> |
| <execution> |
| <id>prepare-agent-integration</id> |
| <goals> |
| <goal>prepare-agent-integration</goal> |
| </goals> |
| <configuration> |
| <propertyName>jacoco.agent</propertyName> |
| </configuration> |
| </execution> |
| <execution> |
| <id>aggregate-coverage-information</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>report-aggregate</goal> |
| </goals> |
| <configuration> |
| <title>Apache Sling Scripting Resolver</title> |
| <includes> |
| <include>**/org/apache/sling/scripting/resolver/**/*.class</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <!-- the Sling instance is provisioned from the model in src/test/provisioning/it-model.txt --> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingstart-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <id>prepare-launchpad-package</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>prepare-package</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>build-launchpad-package</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>package</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>start-container-before-IT</id> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>stop-container-after-IT</id> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <usePomDependencies>true</usePomDependencies> |
| <attachArtifact>false</attachArtifact> |
| <servers> |
| <server> |
| <id>testinstance</id> |
| <port>${http.port.testing}</port> |
| <vmOpts>${sling.vm.options} ${jacoco.agent}</vmOpts> |
| </server> |
| </servers> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>example</id> |
| <properties> |
| <http.host>localhost</http.host> |
| <http.port>8080</http.port> |
| <sling.vm.options>-Xmx1024m -XX:MaxPermSize=256m -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000</sling.vm.options> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <!-- the Sling instance is provisioned from the model in src/test/provisioning/it-model.txt --> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingstart-maven-plugin</artifactId> |
| <version>1.7.16</version> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <id>prepare-launchpad-package</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>prepare-package</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>build-launchpad-package</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>package</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>start-container-before-IT</id> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| </execution> |
| <execution> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <usePomDependencies>true</usePomDependencies> |
| <attachArtifact>false</attachArtifact> |
| <shouldBlockUntilKeyIsPressed>true</shouldBlockUntilKeyIsPressed> |
| <servers> |
| <server> |
| <id>exampleinstance</id> |
| <port>${http.port}</port> |
| <vmOpts>${sling.vm.options}</vmOpts> |
| </server> |
| </servers> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |