-<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.argeo.commons</groupId>
- <version>2.1.51-SNAPSHOT</version>
- <artifactId>dist</artifactId>
- <relativePath>..</relativePath>
- </parent>
- <artifactId>osgi-boot</artifactId>
- <packaging>pom</packaging>
- <name>Commons Deployable OSGi Boot</name>
- <properties>
- <version.equinox>3.10.1.v20140909-1633</version.equinox>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.argeo.tp</groupId>
- <artifactId>argeo-tp</artifactId>
- <version>${version.argeo-distribution}</version>
- </dependency>
-
- <!-- OSGi Boot (and Equinox) -->
- <dependency>
- <groupId>org.argeo.commons</groupId>
- <artifactId>org.argeo.osgi.boot</artifactId>
- <version>2.1.51-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>rpmbuild</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>rpm-osgi-boot</id>
- <phase>package</phase>
- <goals>
- <goal>rpm</goal>
- </goals>
- <configuration>
- <name>osgi-boot</name>
- <mappings>
- <mapping>
- <directory>/etc/osgiboot</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>644</filemode>
- <configuration>noreplace</configuration>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/rpm/etc/osgiboot</location>
- <includes>
- <include>*-settings.sh</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/etc/osgiboot</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>644</filemode>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/rpm/etc/osgiboot</location>
- <includes>
- <include>*.policy</include>
- <include>*-functions.sh</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/sbin</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>755</filemode>
- <directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/rpm/usr/sbin</location>
- <includes>
- <include>osgi-service</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/share/osgi/boot</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>644</filemode>
- <directoryIncluded>false</directoryIncluded>
- <dependency>
- <stripVersion>true</stripVersion>
- <includes>
- <include>org.argeo.commons:org.argeo.osgi.boot</include>
- </includes>
- </dependency>
- <!-- <sources> -->
- <!-- <source> -->
- <!-- <location>${project.build.directory}/lib</location> -->
- <!-- <includes> -->
- <!-- <include>org.argeo.osgi.boot.jar</include> -->
- <!-- </includes> -->
- <!-- </source> -->
- <!-- </sources> -->
- </mapping>
- </mappings>
- <requires>
- <require>osgi-boot-equinox</require>
- </requires>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>rpmbuild-tp</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>rpm-osgi-boot-equinox</id>
- <phase>package</phase>
- <goals>
- <goal>rpm</goal>
- </goals>
- <configuration>
- <name>osgi-boot-equinox</name>
- <projversion>${version.argeo-distribution}</projversion>
- <mappings>
- <mapping>
- <directory>/usr/share/osgi/boot</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>644</filemode>
- <directoryIncluded>false</directoryIncluded>
- <dependency>
- <stripVersion>true</stripVersion>
- <includes>
- <include>org.argeo.tp.equinox:org.eclipse.osgi</include>
- </includes>
- </dependency>
- <!-- <sources> -->
- <!-- <source> -->
- <!-- <location>${project.build.directory}/lib</location> -->
- <!-- <includes> -->
- <!-- <include>org.eclipse.osgi.jar</include> -->
- <!-- </includes> -->
- <!-- </source> -->
- <!-- </sources> -->
- </mapping>
- </mappings>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>