| <?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>52</version> |
| <relativePath /> |
| </parent> |
| |
| <artifactId>org.apache.sling.starter.minimal</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <name>Apache Sling Minimal Starter</name> |
| <description>A minimal starter for Apache Sling</description> |
| |
| <packaging>slingosgifeature</packaging> |
| |
| <properties> |
| <sling.java.version>11</sling.java.version> |
| <launcher.version>1.3.0</launcher.version> |
| <port>8088</port> |
| <project.build.outputTimestamp>1</project.build.outputTimestamp> |
| <sourceDir>/tmp/docs</sourceDir> |
| <targetDir>/tmp/offliner</targetDir> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingfeature-maven-plugin</artifactId> |
| <version>1.8.0</version> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <id>create-full</id> |
| <goals> |
| <goal>aggregate-features</goal> |
| </goals> |
| <configuration> |
| <aggregates> |
| <aggregate> |
| <filesInclude>*.json</filesInclude> |
| <filesInclude>deployments/web.json</filesInclude> |
| </aggregate> |
| <aggregate> |
| <classifier>offlineapp</classifier> |
| <filesInclude>*.json</filesInclude> |
| <filesInclude>addons/sightly.json</filesInclude> |
| <filesInclude>deployments/offline.json</filesInclude> |
| </aggregate> |
| <aggregate> |
| <classifier>fullwebapp</classifier> |
| <filesInclude>*.json</filesInclude> |
| <filesInclude>deployments/web.json</filesInclude> |
| <filesInclude>addons/webconsole.json</filesInclude> |
| <filesInclude>addons/sightly.json</filesInclude> |
| </aggregate> |
| </aggregates> |
| </configuration> |
| </execution> |
| <execution> |
| <id>analyze-features</id> |
| <goals> |
| <goal>analyse-features</goal> |
| </goals> |
| <configuration> |
| <framework> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| <version>7.0.5</version> |
| </framework> |
| <scans> |
| <scan> |
| <includeClassifier>:</includeClassifier> |
| <includeClassifier>offlineapp</includeClassifier> |
| <includeClassifier>fullwebapp</includeClassifier> |
| <includeTasks> |
| <includeTask>bundle-packages</includeTask> |
| <includeTask>api-regions-exportsimports</includeTask> |
| <includeTask>check-unused-bundles</includeTask> |
| </includeTasks> |
| </scan> |
| </scans> |
| </configuration> |
| </execution> |
| <execution> |
| <id>create-repository</id> |
| <goals> |
| <goal>repository</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <createReferenceFile>true</createReferenceFile> |
| <enableLegacyVariableReplacement>true</enableLegacyVariableReplacement> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>3.5.0</version> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.feature.launcher</artifactId> |
| <version>${launcher.version}</version> |
| <type>zip</type> |
| </artifactItem> |
| </artifactItems> |
| <outputDirectory>target</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.5.0</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <executable>${basedir}/target/org.apache.sling.feature.launcher-${launcher.version}/bin/launcher</executable> |
| <arguments> |
| <argument>-f</argument> |
| <argument>mvn:${project.groupId}/${project.artifactId}/${project.version}/slingosgifeature/offlineapp</argument> |
| <argument>-p</argument> |
| <argument>target/launcher</argument> |
| <argument>-c</argument> |
| <argument>target/launcher/cache</argument> |
| </arguments> |
| <environmentVariables> |
| <SOURCE_DIR>${sourceDir}</SOURCE_DIR> |
| <TARGET_DIR>${targetDir}</TARGET_DIR> |
| </environmentVariables> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |