]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.sdk/pom.xml
Prepare next development cycle
[gpl/argeo-slc.git] / org.argeo.slc.sdk / 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.slc</groupId>
6 <artifactId>dist</artifactId>
7 <version>0.12.2-SNAPSHOT</version>
8 </parent>
9 <groupId>org.argeo.slc.dist</groupId>
10 <artifactId>org.argeo.slc.sdk</artifactId>
11 <packaging>jar</packaging>
12 <name>SLC SDK</name>
13 <properties>
14 <argeo.p2.cmd>/opt/equinox-p2-agent/eclipse</argeo.p2.cmd>
15 <argeo.p2.repository>/var/argeo/projects/SLC/www/sdk-dev</argeo.p2.repository>
16 </properties>
17 <build>
18 <plugins>
19 <plugin>
20 <groupId>org.apache.maven.plugins</groupId>
21 <artifactId>maven-dependency-plugin</artifactId>
22 <executions>
23 <execution>
24 <id>copy-dependencies</id>
25 <phase>process-resources</phase>
26 <goals>
27 <goal>copy-dependencies</goal>
28 </goals>
29 <configuration>
30 <includeTypes>jar</includeTypes>
31 <outputDirectory>${project.build.directory}/lib</outputDirectory>
32 </configuration>
33 </execution>
34 </executions>
35 </plugin>
36 <plugin>
37 <groupId>org.argeo.maven.plugins</groupId>
38 <artifactId>maven-argeo-osgi-plugin</artifactId>
39 <version>${version.maven-argeo-osgi}</version>
40 <executions>
41 <execution>
42 <id>pde-source</id>
43 <phase>process-resources</phase>
44 <goals>
45 <goal>pde-sources</goal>
46 </goals>
47 <configuration>
48 </configuration>
49 </execution>
50 <execution>
51 <id>check-osgi</id>
52 <phase>test</phase>
53 <goals>
54 <goal>equinox</goal>
55 </goals>
56 <configuration>
57 <useDependencies>false</useDependencies>
58 <onlyCheck>true</onlyCheck>
59 <argsToAppend>
60 <arg>-clean</arg>
61 </argsToAppend>
62 <systemProperties>
63 <!-- Make sure that no bundle will be started -->
64 <argeo.osgi.start>XXX</argeo.osgi.start>
65 <argeo.osgi.bundles>
66 ${project.build.directory}/lib;in=*.jar,
67 </argeo.osgi.bundles>
68 </systemProperties>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
73 <plugin>
74 <artifactId>maven-resources-plugin</artifactId>
75 <executions>
76 <execution>
77 <id>filter-base</id>
78 <phase>process-resources</phase>
79 <goals>
80 <goal>copy-resources</goal>
81 </goals>
82 <configuration>
83 <outputDirectory>${basedir}/target/base</outputDirectory>
84 <resources>
85 <resource>
86 <directory>src/main/base</directory>
87 <filtering>true</filtering>
88 </resource>
89 </resources>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-assembly-plugin</artifactId>
97 <configuration>
98 <descriptors>
99 <descriptor>src/assembly/dist.xml</descriptor>
100 <descriptor>src/assembly/devel.xml</descriptor>
101 </descriptors>
102 </configuration>
103 <executions>
104 <execution>
105 <id>attach-assembly</id>
106 <phase>package</phase>
107 <goals>
108 <goal>single</goal>
109 </goals>
110 </execution>
111 </executions>
112 </plugin>
113 <plugin>
114 <groupId>org.codehaus.mojo</groupId>
115 <artifactId>exec-maven-plugin</artifactId>
116 <version>1.1</version>
117 <executions>
118 <execution>
119 <id>create-repository</id>
120 <phase>deploy</phase>
121 <goals>
122 <goal>exec</goal>
123 </goals>
124 </execution>
125 </executions>
126 <configuration>
127 <executable>${argeo.p2.cmd}</executable>
128 <!-- optional -->
129 <workingDirectory>/tmp</workingDirectory>
130 <arguments>
131 <argument>-noSplash</argument>
132 <argument>-application</argument>
133 <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
134 <argument>-metadataRepository</argument>
135 <argument>file:${argeo.p2.repository}</argument>
136 <argument>-artifactRepository</argument>
137 <argument>file:${argeo.p2.repository}</argument>
138 <argument>-bundles</argument>
139 <argument>${project.build.directory}</argument>
140 <argument>-features</argument>
141 <argument>${project.build.directory}</argument>
142 <argument>-compress</argument>
143 <argument>-publishArtifacts</argument>
144 </arguments>
145 </configuration>
146 </plugin>
147 </plugins>
148 </build>
149 <dependencies>
150 <dependency>
151 <groupId>org.argeo.slc.dep</groupId>
152 <artifactId>org.argeo.slc.dep.sdk</artifactId>
153 <version>${project.version}</version>
154 </dependency>
155 </dependencies>
156 <profiles>
157 <profile>
158 <id>rpmbuild</id>
159
160 <activation>
161 <os>
162 <name>Linux</name>
163 </os>
164 <file>
165 <exists>/usr/bin/rpmbuild</exists>
166 </file>
167 </activation>
168
169 <properties>
170 <package.version>${project.version}</package.version>
171 <distribution.label>argeo</distribution.label>
172 <distribution.root>/var/argeo/linux/argeo-el/5/argeo-testing</distribution.root>
173 </properties>
174 <build>
175 <plugins>
176 <plugin>
177 <groupId>org.codehaus.mojo</groupId>
178 <artifactId>rpm-maven-plugin</artifactId>
179 <extensions>true</extensions>
180 <configuration>
181 <version>${package.version}</version>
182 <release>r${buildNumber}.${distribution.label}</release>
183 <copyright>2010 Argeo</copyright>
184 <distribution>${distribution.label}</distribution>
185 <packager>mbaudier@argeo.org</packager>
186 <group>Applications/System</group>
187 <prefix>/usr</prefix>
188 </configuration>
189 <executions>
190 <execution>
191 <id>rpm-sdk</id>
192 <phase>package</phase>
193 <goals>
194 <goal>rpm</goal>
195 </goals>
196 <configuration>
197 <mappings>
198 <mapping>
199 <directory>/usr/bin</directory>
200 <username>root</username>
201 <groupname>root</groupname>
202 <filemode>755</filemode>
203 <directoryIncluded>false</directoryIncluded>
204 <sources>
205 <source>
206 <location>src/main/rpm/usr/bin</location>
207 <includes>
208 <include>*</include>
209 </includes>
210 </source>
211 </sources>
212 </mapping>
213 <mapping>
214 <directory>/etc/init.d</directory>
215 <username>root</username>
216 <groupname>root</groupname>
217 <filemode>755</filemode>
218 <directoryIncluded>false</directoryIncluded>
219 <sources>
220 <source>
221 <location>src/main/rpm/etc/init.d</location>
222 <includes>
223 <include>*</include>
224 </includes>
225 </source>
226 </sources>
227 </mapping>
228 <mapping>
229 <directory>/etc/slc-agent</directory>
230 <username>root</username>
231 <groupname>root</groupname>
232 <filemode>644</filemode>
233 <configuration>true</configuration>
234 <sources>
235 <source>
236 <location>src/main/rpm/etc/slc-agent</location>
237 <includes>
238 <include>*</include>
239 </includes>
240 </source>
241 </sources>
242 </mapping>
243 <mapping>
244 <directory>/etc/slc-server</directory>
245 <username>root</username>
246 <groupname>root</groupname>
247 <filemode>644</filemode>
248 <configuration>true</configuration>
249 <sources>
250 <source>
251 <location>src/main/rpm/etc/slc-server</location>
252 <includes>
253 <include>*</include>
254 </includes>
255 </source>
256 </sources>
257 </mapping>
258 <mapping>
259 <directory>/usr/share/osgi</directory>
260 <username>root</username>
261 <groupname>root</groupname>
262 <filemode>644</filemode>
263 <directoryIncluded>false</directoryIncluded>
264 <sources>
265 <source>
266 <location>target/lib</location>
267 <includes>
268 <include>*.jar</include>
269 </includes>
270 </source>
271 </sources>
272 </mapping>
273 </mappings>
274 <postinstallScriptlet>
275 <scriptFile>src/main/scripts/postinstall</scriptFile>
276 </postinstallScriptlet>
277 <preremoveScriptlet>
278 <scriptFile>src/main/scripts/preremove</scriptFile>
279 </preremoveScriptlet>
280 <requires>
281 <require>java</require>
282 <!-- For the start/stop scripts -->
283 <require>expect</require>
284 </requires>
285 </configuration>
286 </execution>
287 <execution>
288 <id>rpm-devel</id>
289 <phase>package</phase>
290 <goals>
291 <goal>rpm</goal>
292 </goals>
293 <configuration>
294 <name>${project.artifactId}-pdesources</name>
295 <mappings>
296 <mapping>
297 <directory>/usr/src/osgi/pde</directory>
298 <username>root</username>
299 <groupname>root</groupname>
300 <filemode>644</filemode>
301 <directoryIncluded>false</directoryIncluded>
302 <sources>
303 <source>
304 <location>target/libsrc</location>
305 <includes>
306 <include>*.jar</include>
307 </includes>
308 </source>
309 </sources>
310 </mapping>
311 </mappings>
312 <requires>
313 <require>org.argeo.slc.sdk</require>
314 </requires>
315 </configuration>
316 </execution>
317 <execution>
318 <id>rpm-demo</id>
319 <phase>package</phase>
320 <goals>
321 <goal>rpm</goal>
322 </goals>
323 <configuration>
324 <name>${project.artifactId}-demo</name>
325 <mappings>
326 <mapping>
327 <directory>/var/lib/slc-agent/modules</directory>
328 <username>root</username>
329 <groupname>root</groupname>
330 <filemode>644</filemode>
331 <directoryIncluded>false</directoryIncluded>
332 <sources>
333 <source>
334 <location>../../demo/site</location>
335 <includes>
336 <include>org.argeo.*/**</include>
337 </includes>
338 <excludes>
339 <exclude>pom.xml</exclude>
340 <exclude>target</exclude>
341 <exclude>.svn</exclude>
342 <exclude>**/.svn/**</exclude>
343 </excludes>
344 </source>
345 </sources>
346 </mapping>
347 </mappings>
348 <requires>
349 <require>org.argeo.slc.sdk</require>
350 </requires>
351 </configuration>
352 </execution>
353 </executions>
354 </plugin>
355 <plugin>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-antrun-plugin</artifactId>
358 <executions>
359 <execution>
360 <id>rpm-copyToRepo</id>
361 <phase>install</phase>
362 <goals>
363 <goal>run</goal>
364 </goals>
365 <configuration>
366 <tasks>
367 <mkdir dir="${distribution.root}/i386" />
368 <mkdir dir="${distribution.root}/x86_64" />
369 <delete verbose="true">
370 <fileset dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" />
371 </delete>
372 <copy todir="${distribution.root}/x86_64" verbose="true">
373 <fileset dir="target">
374 <include name="rpm/*/RPMS/*/*.rpm" />
375 </fileset>
376 <flattenmapper />
377 </copy>
378 <exec executable="/usr/bin/createrepo">
379 <arg value="${distribution.root}/x86_64" />
380 </exec>
381 <copy todir="${distribution.root}/i386" verbose="true">
382 <fileset dir="target">
383 <include name="rpm/*/RPMS/*/*.rpm" />
384 </fileset>
385 <flattenmapper />
386 </copy>
387 <exec executable="/usr/bin/createrepo">
388 <arg value="${distribution.root}/i386" />
389 </exec>
390 </tasks>
391 </configuration>
392 </execution>
393 </executions>
394 </plugin>
395 </plugins>
396 </build>
397
398 </profile>
399 </profiles>
400 </project>