blob: c485285be9c6ea7bad6ecad8b5a4fce3fe01eaec [file] [log] [blame]
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- ====================================================================== -->
<!-- P A R E N T P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
<version>35</version>
<relativePath/>
</parent>
<!-- ====================================================================== -->
<!-- P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->
<artifactId>org.apache.sling.mini</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Apache Sling Mini</name>
<description>
sling-mini provides a set of core bundles for opearating a Sling Web Application. Users should extend this feature with a Resource
Provider implementation, Script Engine or Script Engine Runtime and their application code.
</description>
<packaging>slingosgifeature</packaging>
<properties>
<docker.buildArg.JAVA_DESKTOP>false</docker.buildArg.JAVA_DESKTOP>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>slingfeature-maven-plugin</artifactId>
<version>1.1.6</version>
<extensions>true</extensions>
<executions>
<execution>
<id>create-full</id>
<goals>
<goal>aggregate-features</goal>
</goals>
<configuration>
<aggregates>
<aggregate>
<classifier>full</classifier>
<filesInclude>**/*.json</filesInclude>
</aggregate>
</aggregates>
</configuration>
</execution>
<execution>
<id>attach</id>
<goals>
<goal>attach-features</goal>
</goals>
</execution>
<execution>
<id>create-repository</id>
<goals>
<goal>repository</goal>
</goals>
<phase>package</phase>
<configuration>
<repositories>
<repository>
<includeClassifier>*</includeClassifier>
<embedArtifact>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>6.0.3</version>
</embedArtifact>
</repository>
</repositories>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>copy-executables</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<stripClassifier>true</stripClassifier>
<stripVersion>true</stripVersion>
<artifactItems>
<artifactItem>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.feature.launcher</artifactId>
<version>1.0.6</version>
<outputDirectory>${project.build.directory}/docker-run</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>slingosgifeature</type>
<classifier>full</classifier>
<outputDirectory>${project.build.directory}/docker-run</outputDirectory>
<destFileName>feature.json</destFileName>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>launcher</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.27.2</version>
<executions>
<execution>
<id>build-image</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
<configuration>
<images>
<image>
<name>${project.artifactId}</name>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-desktop</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<docker.buildArg.JAVA_DESKTOP>true</docker.buildArg.JAVA_DESKTOP>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.27.2</version>
<executions>
<execution>
<id>build-image</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
<configuration>
<images>
<image>
<name>${project.artifactId}-java-desktop</name>
</image>
</images>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>