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