blob: 679d5ef395d11ab263a9eacf831bcc409d836e6f [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>felix</id>
<properties>
<buildWithFelix>true</buildWithFelix>
</properties>
<dependencies>
<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>
</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>org.apache.felix.atomos.maven</artifactId>
<version>${atomos.version}</version>
<configuration>
<debug>true</debug>
</configuration>
<executions>
<execution>
<goals>
<goal>atomos-index</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<archive>
<manifest>
<mainClass>org.apache.felix.atomos.launch.AtomosLauncher</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>