blob: 124b93ec10a9642d6a1e18785d5a0fd19058fc6e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.felix.atomos.examples</groupId>
<artifactId>org.apache.felix.atomos.examples</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>org.apache.felix.atomos.examples.index</artifactId>
<name>atomos.examples.index</name>
<description>Example using the Atomos index to create an executable JAR</description>
<repositories>
<repository>
<id>atomos-temp-m2repo</id>
<url>https://github.com/tjwatson/atomos-temp-m2repo/raw/master/repository</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>equinox</id>
<dependencies>
<dependency>
<groupId>org.apache.felix.atomos.osgi.frameworks.equinox</groupId>
<artifactId>atomos.osgi.framework</artifactId>
<version>${atomos.version}</version>
</dependency>
</dependencies>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>felix</id>
<properties>
<buildWithFelix>true</buildWithFelix>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.felix.atomos.osgi.frameworks.felix</groupId>
<artifactId>atomos.osgi.framework</artifactId>
<version>${atomos.version}</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.log</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.atomos.runtime</artifactId>
<version>${atomos.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.felix.atomos.examples</groupId>
<artifactId>org.apache.felix.atomos.examples.webconsole.bom</artifactId>
<version>${atomos.version}</version>
<type>pom</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>atomos-maven-plugin</artifactId>
<version>${atomos.version}</version>
<executions>
<execution>
<goals>
<goal>atomos-index</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.apache.felix.atomos.launch.AtomosLauncher</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>