| <?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> |
| <artifactId>org.apache.sling.samples.oauth</artifactId> |
| <groupId>org.apache.sling.samples</groupId> |
| <version>1.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>org.apache.sling.samples.oauth.launcher</artifactId> |
| |
| <name>Sling OAuth Demo - Launcher</name> |
| <description> |
| This is a Module which contains a sample feature model build, built on |
| top of the Sling Starter and adding this project's artifacts. |
| </description> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>slingfeature-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| |
| <configuration> |
| <skipAddFeatureDependencies>true</skipAddFeatureDependencies> |
| <framework> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>org.apache.felix.framework</artifactId> |
| <version>${org.apache.felix.framework.version}</version> |
| </framework> |
| |
| <!-- |
| Prepares a feature model aggregate that takes the following features from |
| the Sling Starter: |
| - nosample_base - the base Sling Starter |
| - oak_persistence_sns - SegmentNodeStore persistence for Oak |
| - composum - The Composum Nodes administration tool |
| |
| Notably missing are the slingshot and starter samples |
| --> |
| <aggregates> |
| <aggregate> |
| <classifier>app</classifier> |
| <filesInclude>*.json</filesInclude> |
| <includeArtifact> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.auth.oauth-client</artifactId> |
| <classifier>app</classifier> |
| <version>0.1-SNAPSHOT</version> |
| <type>slingosgifeature</type> |
| </includeArtifact> |
| </aggregate> |
| </aggregates> |
| <scans> |
| <scan> |
| <includeClassifier>app</includeClassifier> |
| </scan> |
| </scans> |
| </configuration> |
| <executions> |
| <execution> |
| <id>prepare-features</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>aggregate-features</goal> |
| <goal>analyse-features</goal> |
| <goal>attach-features</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>prepare-feature-launcher</id> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.sling</groupId> |
| <artifactId>org.apache.sling.feature.launcher</artifactId> |
| <version>${org.apache.sling.feature.launcher.version}</version> |
| <type>tar.gz</type> |
| <!-- remove the version number from the unpacked folder --> |
| <fileMappers> |
| <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> |
| <pattern>\Qorg.apache.sling.feature.launcher-${org.apache.sling.feature.launcher.version}\E</pattern> |
| <replacement>org.apache.sling.feature.launcher</replacement> |
| </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper> |
| </fileMappers> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |