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