| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| 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>35</version> |
| <relativePath /> |
| </parent> |
| |
| <artifactId>org.apache.sling.feature.starter</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| |
| <name>Apache Sling Feature JAR Launcher</name> |
| <description> |
| An Executable JAR file launcher a Feature Launcher System |
| </description> |
| |
| <!-- <scm>--> |
| <!-- <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-starter.git</connection>--> |
| <!-- <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-starter.git</developerConnection>--> |
| <!-- <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-feature-starter.git</url>--> |
| <!-- <tag>HEAD</tag>--> |
| <!-- </scm>--> |
| |
| <properties> |
| <sling.java.version>8</sling.java.version> |
| <picocli.version>3.6.0</picocli.version> |
| <appassembler-maven-plugin.version>2.0.0</appassembler-maven-plugin.version> |
| <org.apache.sling.feature.extension.content.version>1.0.4</org.apache.sling.feature.extension.content.version> |
| <org.apache.sling.feature.launcher.version>1.1.0</org.apache.sling.feature.launcher.version> |
| <org.apache.sling.feature.io.version>1.1.0</org.apache.sling.feature.io.version> |
| <org.apache.felix.converter.version>1.0.8</org.apache.felix.converter.version> |
| |
| <sling.java.version>8</sling.java.version> |
| <IT.expected.bundles.count>126</IT.expected.bundles.count> |
| |
| <block.sling.at.the.end>false</block.sling.at.the.end> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>ianal-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>verify-legal-files</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${basedir}</directory> |
| <includes> |
| <include>sling/**</include> |
| <include>coverage.ec</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-dependencies</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>unpack-dependencies</goal> |
| </goals> |
| <configuration> |
| <excludes>META-INF/**</excludes> |
| <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>true</overWriteSnapshots> |
| <includeArtifactIds> |
| commons-io, |
| org.apache.sling.feature.extension.content, |
| org.apache.sling.feature.launcher, |
| osgi.core,commons-lang, |
| org.apache.sling.feature, |
| org.apache.sling.feature.io, |
| org.apache.felix.converter, |
| picocli, |
| slf4j-api, |
| slf4j-simple |
| </includeArtifactIds> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.sling.feature.starter.app.SlingStarter</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>readme.md</exclude> |
| <exclude>src/main/resources/META-INF/services/**</exclude> |
| <exclude>**/*.properties</exclude> |
| <exclude>launcher/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <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</portName> |
| <portName>sling.control.port</portName> |
| </portNames> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingstart-feature-maven-plugin</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <extensions>true</extensions> |
| <executions> |
| <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> |
| <configuration> |
| <!-- Let the Test Server run to manually verify the setup. TODO: remove later --> |
| <shouldBlockUntilKeyIsPressed>${block.sling.at.the.end}</shouldBlockUntilKeyIsPressed> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <launchpadJar>${project.build.directory}/${project.artifactId}-${project.version}.jar</launchpadJar> |
| <parallelExecution>false</parallelExecution> |
| <servers> |
| <server> |
| <port>${http.port}</port> |
| <controlPort>${sling.control.port}</controlPort> |
| <debug>true</debug> |
| </server> |
| </servers> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <systemPropertyVariables> |
| <launchpad.http.port>${http.port}</launchpad.http.port> |
| <IT.expected.bundles.count>${IT.expected.bundles.count}</IT.expected.bundles.count> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <!-- Extend RAT configuration from parent pom --> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes combine.children="append"> |
| <!-- Exclude sling instance --> |
| <exclude>sling/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <dependencies> |
| <!-- |
| | CLI |
| --> |
| <dependency> |
| <groupId>info.picocli</groupId> |
| <artifactId>picocli</artifactId> |
| <version>${picocli.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| <version>2.6</version> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>osgi.core</artifactId> |
| <version>7.0.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| <version>6.0.2</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.feature.extension.content</artifactId> |
| <version>${org.apache.sling.feature.extension.content.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.feature.launcher</artifactId> |
| <version>${org.apache.sling.feature.launcher.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.feature.io</artifactId> |
| <version>${org.apache.sling.feature.io.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.converter</artifactId> |
| <version>${org.apache.felix.converter.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>2.6</version> |
| </dependency> |
| |
| <!-- Testing dependencies --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| <version>4.5.10</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.utils</artifactId> |
| <version>1.11.2</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- <dependency>--> |
| <!-- <groupId>org.mockito</groupId>--> |
| <!-- <artifactId>mockito-core</artifactId>--> |
| <!-- <version>2.8.9</version>--> |
| <!-- <scope>test</scope>--> |
| <!-- </dependency>--> |
| </dependencies> |
| </project> |