]> git.argeo.org Git - lgpl/argeo-commons.git/blob - dist/osgi-boot/pom.xml
Prepare Argeo Commons 2.1.30 release
[lgpl/argeo-commons.git] / dist / osgi-boot / pom.xml
1 <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">
2 <modelVersion>4.0.0</modelVersion>
3 <parent>
4 <groupId>org.argeo.commons</groupId>
5 <version>2.1.30-SNAPSHOT</version>
6 <artifactId>dist</artifactId>
7 <relativePath>..</relativePath>
8 </parent>
9 <artifactId>osgi-boot</artifactId>
10 <packaging>pom</packaging>
11 <name>Commons Deployable OSGi Boot</name>
12 <properties>
13 <version.equinox>3.10.1.v20140909-1633</version.equinox>
14 </properties>
15 <profiles>
16 <profile>
17 <id>rpmbuild</id>
18 <build>
19 <plugins>
20 <plugin>
21 <groupId>org.apache.maven.plugins</groupId>
22 <artifactId>maven-dependency-plugin</artifactId>
23 <executions>
24 <execution>
25 <id>copy-dependencies</id>
26 <phase>package</phase>
27 <goals>
28 <goal>copy</goal>
29 </goals>
30 <configuration>
31 <includeTypes>jar</includeTypes>
32 <stripVersion>true</stripVersion>
33 <outputDirectory>${project.build.directory}/lib</outputDirectory>
34 <artifactItems>
35 <artifactItem>
36 <groupId>org.argeo.commons</groupId>
37 <artifactId>org.argeo.osgi.boot</artifactId>
38 <version>${version.argeo-commons}</version>
39 <type>jar</type>
40 </artifactItem>
41 <artifactItem>
42 <groupId>org.argeo.tp.equinox</groupId>
43 <artifactId>org.eclipse.osgi</artifactId>
44 <version>${version.equinox}</version>
45 <type>jar</type>
46 </artifactItem>
47 </artifactItems>
48 </configuration>
49 </execution>
50 </executions>
51 </plugin>
52 <plugin>
53 <groupId>org.codehaus.mojo</groupId>
54 <artifactId>rpm-maven-plugin</artifactId>
55 <executions>
56 <execution>
57 <id>rpm-osgi-boot</id>
58 <phase>package</phase>
59 <goals>
60 <goal>rpm</goal>
61 </goals>
62 <configuration>
63 <name>osgi-boot</name>
64 <mappings>
65 <mapping>
66 <directory>/etc/osgiboot</directory>
67 <username>root</username>
68 <groupname>root</groupname>
69 <filemode>644</filemode>
70 <configuration>noreplace</configuration>
71 <directoryIncluded>false</directoryIncluded>
72 <sources>
73 <source>
74 <location>src/main/rpm/etc/osgiboot</location>
75 <includes>
76 <include>*-settings.sh</include>
77 </includes>
78 </source>
79 </sources>
80 </mapping>
81 <mapping>
82 <directory>/etc/osgiboot</directory>
83 <username>root</username>
84 <groupname>root</groupname>
85 <filemode>644</filemode>
86 <directoryIncluded>false</directoryIncluded>
87 <sources>
88 <source>
89 <location>src/main/rpm/etc/osgiboot</location>
90 <includes>
91 <include>*-functions.sh</include>
92 </includes>
93 </source>
94 </sources>
95 </mapping>
96 <mapping>
97 <directory>/usr/sbin</directory>
98 <username>root</username>
99 <groupname>root</groupname>
100 <filemode>755</filemode>
101 <sources>
102 <source>
103 <location>src/main/rpm/usr/sbin</location>
104 </source>
105 </sources>
106 </mapping>
107 <mapping>
108 <directory>/usr/share/osgi/boot</directory>
109 <username>root</username>
110 <groupname>root</groupname>
111 <filemode>644</filemode>
112 <directoryIncluded>false</directoryIncluded>
113 <sources>
114 <source>
115 <location>${project.build.directory}/lib</location>
116 <includes>
117 <include>org.argeo.osgi.boot.jar</include>
118 </includes>
119 </source>
120 </sources>
121 </mapping>
122 </mappings>
123 <requires>
124 <require>osgi-boot-equinox</require>
125 </requires>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
130 <plugin>
131 <artifactId>maven-antrun-plugin</artifactId>
132 <executions>
133 <execution>
134 <phase>install</phase>
135 <goals>
136 <goal>run</goal>
137 </goals>
138 <configuration>
139 <target>
140 <copy todir="${rpm.stagingRepository}" verbose="true">
141 <fileset dir="${project.build.directory}/rpm" includes="*/RPMS/**/*.rpm" />
142 <flattenmapper />
143 </copy>
144 </target>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
149 </plugins>
150 </build>
151 </profile>
152 <profile>
153 <id>rpmbuild-tp</id>
154 <build>
155 <plugins>
156 <plugin>
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>rpm-maven-plugin</artifactId>
159 <executions>
160 <execution>
161 <id>rpm-osgi-boot-equinox</id>
162 <phase>package</phase>
163 <goals>
164 <goal>rpm</goal>
165 </goals>
166 <configuration>
167 <name>osgi-boot-equinox</name>
168 <projversion>${version.argeo-distribution}</projversion>
169 <mappings>
170 <mapping>
171 <directory>/usr/share/osgi/boot</directory>
172 <username>root</username>
173 <groupname>root</groupname>
174 <filemode>644</filemode>
175 <directoryIncluded>false</directoryIncluded>
176 <sources>
177 <source>
178 <location>${project.build.directory}/lib</location>
179 <includes>
180 <include>org.eclipse.osgi.jar</include>
181 </includes>
182 </source>
183 </sources>
184 </mapping>
185 </mappings>
186 </configuration>
187 </execution>
188 </executions>
189 </plugin>
190 </plugins>
191 </build>
192 </profile>
193 </profiles>
194 </project>