<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.argeo.commons</groupId>
- <version>2.1.31-SNAPSHOT</version>
+ <version>2.1.91</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>
+ <!-- <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-tp}</version>
+ </dependency>
+
+ <!-- OSGi Boot (and Equinox) -->
+ <dependency>
+ <groupId>org.argeo.commons</groupId>
+ <artifactId>org.argeo.osgi.boot</artifactId>
+ <version>2.1.91</version>
+ </dependency>
+ </dependencies>
<profiles>
<profile>
- <id>rpmbuild</id>
+ <id>dist</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <finalName>osgi-boot-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>assembly/osgi-boot.xml</descriptor>
+ </descriptors>
+ </configuration>
<executions>
<execution>
- <id>copy-dependencies</id>
+ <id>assembly-base</id>
<phase>package</phase>
<goals>
- <goal>copy</goal>
+ <goal>single</goal>
</goals>
- <configuration>
- <includeTypes>jar</includeTypes>
- <stripVersion>true</stripVersion>
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
- <artifactItems>
- <artifactItem>
- <groupId>org.argeo.commons</groupId>
- <artifactId>org.argeo.osgi.boot</artifactId>
- <version>${version.argeo-commons}</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>org.argeo.tp.equinox</groupId>
- <artifactId>org.eclipse.osgi</artifactId>
- <version>${version.equinox}</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- </configuration>
</execution>
</executions>
</plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>rpmbuild</id>
+ <build>
+ <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<goal>rpm</goal>
</goals>
<configuration>
- <name>osgi-boot</name>
+ <name>argeo-osgi-boot</name>
<mappings>
<mapping>
- <directory>/etc/osgiboot</directory>
+ <directory>/usr/bin</directory>
<username>root</username>
<groupname>root</groupname>
- <filemode>644</filemode>
- <configuration>noreplace</configuration>
+ <filemode>755</filemode>
<directoryIncluded>false</directoryIncluded>
<sources>
<source>
- <location>src/main/rpm/etc/osgiboot</location>
+ <location>rpm/usr/bin</location>
<includes>
- <include>*-settings.sh</include>
+ <include>*</include>
</includes>
</source>
</sources>
</mapping>
<mapping>
- <directory>/etc/osgiboot</directory>
+ <directory>/usr/share/osgi/boot</directory>
<username>root</username>
<groupname>root</groupname>
<filemode>644</filemode>
<directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>src/main/rpm/etc/osgiboot</location>
- <includes>
- <include>*-functions.sh</include>
- </includes>
- </source>
- </sources>
- </mapping>
- <mapping>
- <directory>/usr/sbin</directory>
- <username>root</username>
- <groupname>root</groupname>
- <filemode>755</filemode>
- <sources>
- <source>
- <location>src/main/rpm/usr/sbin</location>
- </source>
- </sources>
+ <dependency>
+ <stripVersion>true</stripVersion>
+ <includes>
+ <include>org.argeo.commons:org.argeo.osgi.boot</include>
+ </includes>
+ </dependency>
</mapping>
<mapping>
<directory>/usr/share/osgi/boot</directory>
<username>root</username>
<groupname>root</groupname>
<filemode>644</filemode>
+ <configuration>noreplace</configuration>
<directoryIncluded>false</directoryIncluded>
<sources>
<source>
- <location>${project.build.directory}/lib</location>
+ <location>rpm/usr/share/osgi/boot</location>
<includes>
- <include>org.argeo.osgi.boot.jar</include>
+ <include>*.args</include>
</includes>
</source>
</sources>
</mapping>
</mappings>
<requires>
- <require>osgi-boot-equinox</require>
+ <require>argeo-osgi-boot-equinox</require>
</requires>
</configuration>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>install</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <copy todir="${rpm.stagingRepository}" verbose="true">
- <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
- <flattenmapper />
- </copy>
- </target>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
<goal>rpm</goal>
</goals>
<configuration>
- <name>osgi-boot-equinox</name>
- <projversion>${version.argeo-distribution}</projversion>
+ <name>argeo-osgi-boot-equinox</name>
+ <projversion>${version.argeo-tp}</projversion>
+ <release>${maven.build.timestamp}</release>
<mappings>
<mapping>
<directory>/usr/share/osgi/boot</directory>
<groupname>root</groupname>
<filemode>644</filemode>
<directoryIncluded>false</directoryIncluded>
- <sources>
- <source>
- <location>${project.build.directory}/lib</location>
- <includes>
- <include>org.eclipse.osgi.jar</include>
- </includes>
- </source>
- </sources>
+ <dependency>
+ <stripVersion>true</stripVersion>
+ <includes>
+ <include>org.argeo.tp.equinox:org.eclipse.osgi</include>
+ </includes>
+ </dependency>
</mapping>
</mappings>
</configuration>