]> 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>dep</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}</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 ${basedir}/target;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>validate</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 <!--
93 <execution> <id>filter-rpm</id> <phase>validate</phase> <goals>
94 <goal>copy-resources</goal> </goals> <configuration>
95 <outputDirectory>${basedir}/target/rpmfiltered</outputDirectory>
96 <resources> <resource> <directory>src/main/rpm</directory>
97 <filtering>true</filtering> </resource> </resources>
98 </configuration> </execution>
99 -->
100 </executions>
101 </plugin>
102 <plugin>
103 <groupId>org.apache.maven.plugins</groupId>
104 <artifactId>maven-assembly-plugin</artifactId>
105 <configuration>
106 <descriptors>
107 <descriptor>src/assembly/dist.xml</descriptor>
108 </descriptors>
109 </configuration>
110 <executions>
111 <execution>
112 <id>attach-assembly</id>
113 <phase>package</phase>
114 <goals>
115 <goal>single</goal>
116 </goals>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <groupId>org.codehaus.mojo</groupId>
122 <artifactId>exec-maven-plugin</artifactId>
123 <version>1.1</version>
124 <executions>
125 <execution>
126 <id>create-repository</id>
127 <phase>deploy</phase>
128 <goals>
129 <goal>exec</goal>
130 </goals>
131 </execution>
132 </executions>
133 <configuration>
134 <executable>${argeo.p2.cmd}</executable>
135 <!-- optional -->
136 <workingDirectory>/tmp</workingDirectory>
137 <arguments>
138 <argument>-noSplash</argument>
139 <argument>-application</argument>
140 <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
141 <argument>-metadataRepository</argument>
142 <argument>file:${argeo.p2.repository}</argument>
143 <argument>-artifactRepository</argument>
144 <argument>file:${argeo.p2.repository}</argument>
145 <argument>-bundles</argument>
146 <argument>${project.build.directory}</argument>
147 <argument>-features</argument>
148 <argument>${project.build.directory}</argument>
149 <argument>-compress</argument>
150 <argument>-publishArtifacts</argument>
151 </arguments>
152 </configuration>
153 </plugin>
154 </plugins>
155 </build>
156 <dependencies>
157 <dependency>
158 <groupId>org.argeo.slc.dep</groupId>
159 <artifactId>org.argeo.slc.dep.server</artifactId>
160 <version>${project.version}</version>
161 </dependency>
162 <dependency>
163 <groupId>org.argeo.slc.dep</groupId>
164 <artifactId>org.argeo.slc.dep.detached</artifactId>
165 <version>${project.version}</version>
166 </dependency>
167 <dependency>
168 <groupId>org.argeo.slc.runtime</groupId>
169 <artifactId>org.argeo.slc.unit</artifactId>
170 <version>${project.version}</version>
171 </dependency>
172 <dependency>
173 <groupId>org.argeo.slc.server</groupId>
174 <artifactId>org.argeo.slc.ria</artifactId>
175 </dependency>
176
177 <!-- Modules -->
178
179 <!-- Launcher -->
180 <dependency>
181 <groupId>org.argeo.slc.runtime</groupId>
182 <artifactId>org.argeo.slc.launcher</artifactId>
183 <version>${project.version}</version>
184 <type>tar.gz</type>
185 <classifier>base</classifier>
186 </dependency>
187
188 </dependencies>
189 <profiles>
190 <profile>
191 <id>sdkWithModules</id>
192 <activation>
193 <activeByDefault>true</activeByDefault>
194 </activation>
195 <dependencies>
196 <dependency>
197 <groupId>org.argeo.slc.modules</groupId>
198 <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
199 <version>${project.version}</version>
200 <type>pom</type>
201 </dependency>
202 <dependency>
203 <groupId>org.argeo.slc.modules</groupId>
204 <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
205 <version>${project.version}</version>
206 <type>pom</type>
207 </dependency>
208 </dependencies>
209 </profile>
210 <profile>
211 <id>sdkWithoutModules</id>
212 </profile>
213 <profile>
214 <id>release</id>
215 <properties>
216 <argeo.p2.repository>/var/argeo/projects/SLC/www/sdk</argeo.p2.repository>
217 </properties>
218 <dependencies>
219 <dependency>
220 <groupId>org.argeo.slc.modules</groupId>
221 <artifactId>org.argeo.slc.modules.agent.bundles</artifactId>
222 <version>${project.version}</version>
223 <type>pom</type>
224 </dependency>
225 <dependency>
226 <groupId>org.argeo.slc.modules</groupId>
227 <artifactId>org.argeo.slc.modules.server.bundles</artifactId>
228 <version>${project.version}</version>
229 <type>pom</type>
230 </dependency>
231 </dependencies>
232 </profile>
233 <profile>
234 <id>rpmbuild</id><!--
235 <activation>
236 <os>
237 <name>Linux</name>
238 </os>
239 <file>
240 <exists>/usr/bin/rpmbuild</exists>
241 </file>
242 </activation>
243 --><properties>
244 <package.version>${project.version}</package.version>
245 <distribution.label>argeo</distribution.label>
246 </properties>
247 <build>
248 <plugins>
249 <plugin>
250 <groupId>org.codehaus.mojo</groupId>
251 <artifactId>rpm-maven-plugin</artifactId>
252 <version>2.0.1</version>
253 <extensions>true</extensions>
254 <executions>
255 <execution>
256 <id>rpm</id>
257 <phase>package</phase>
258 <goals>
259 <goal>rpm</goal>
260 </goals>
261 </execution>
262 </executions>
263 <configuration>
264 <version>${package.version}</version>
265 <release>r${buildNumber}.${distribution.label}</release>
266 <copyright>2010 Argeo</copyright>
267 <distribution>${distribution.label}</distribution>
268 <packager>mbaudier@argeo.org</packager>
269 <group>Applications/System</group>
270 <prefix>/usr</prefix>
271 <mappings>
272 <mapping>
273 <directory>/usr/bin</directory>
274 <username>root</username>
275 <groupname>root</groupname>
276 <filemode>755</filemode>
277 <directoryIncluded>false</directoryIncluded>
278 <sources>
279 <source>
280 <location>src/main/rpm/usr/bin</location>
281 <includes>
282 <include>*</include>
283 </includes>
284 </source>
285 </sources>
286 </mapping>
287 <mapping>
288 <directory>/etc/init.d</directory>
289 <username>root</username>
290 <groupname>root</groupname>
291 <filemode>755</filemode>
292 <directoryIncluded>false</directoryIncluded>
293 <sources>
294 <source>
295 <location>src/main/rpm/etc/init.d</location>
296 <includes>
297 <include>*</include>
298 </includes>
299 </source>
300 </sources>
301 </mapping>
302 <mapping>
303 <directory>/etc/slc-agent</directory>
304 <username>root</username>
305 <groupname>root</groupname>
306 <filemode>644</filemode>
307 <configuration>true</configuration>
308 <sources>
309 <source>
310 <location>src/main/rpm/etc/slc-agent</location>
311 <includes>
312 <include>*</include>
313 </includes>
314 </source>
315 </sources>
316 </mapping>
317 <mapping>
318 <directory>/etc/slc-server</directory>
319 <username>root</username>
320 <groupname>root</groupname>
321 <filemode>644</filemode>
322 <configuration>true</configuration>
323 <sources>
324 <source>
325 <location>src/main/rpm/etc/slc-server</location>
326 <includes>
327 <include>*</include>
328 </includes>
329 </source>
330 </sources>
331 </mapping>
332 <mapping>
333 <directory>/usr/share/osgi</directory>
334 <username>root</username>
335 <groupname>root</groupname>
336 <filemode>644</filemode>
337 <directoryIncluded>false</directoryIncluded>
338 <sources>
339 <source>
340 <location>target</location>
341 <includes>
342 <include>*.jar</include>
343 </includes>
344 </source>
345 </sources>
346 </mapping>
347 <mapping>
348 <directory>/usr/src/osgi/pde</directory>
349 <username>root</username>
350 <groupname>root</groupname>
351 <filemode>644</filemode>
352 <directoryIncluded>false</directoryIncluded>
353 <sources>
354 <source>
355 <location>target/libsrc</location>
356 <includes>
357 <include>*.jar</include>
358 </includes>
359 </source>
360 </sources>
361 </mapping>
362 </mappings>
363 <postinstallScriptlet>
364 <scriptFile>src/main/scripts/postinstall</scriptFile>
365 </postinstallScriptlet>
366 <preremoveScriptlet>
367 <scriptFile>src/main/scripts/preremove</scriptFile>
368 </preremoveScriptlet>
369 <requires>
370 <require>java-1.6.0-openjdk</require>
371 </requires>
372 </configuration>
373 </plugin>
374 <!--
375 <plugin> <groupId>org.codehaus.mojo</groupId>
376 <artifactId>buildnumber-maven-plugin</artifactId> <executions>
377 <execution> <id>buildNumber-create</id> <phase>validate</phase>
378 <goals> <goal>create</goal> </goals> </execution> </executions>
379 <configuration> <format>{0,number}</format> <items>
380 <item>buildNumber0</item> </items> </configuration> </plugin>
381 -->
382 <!--
383 <plugin> <artifactId>maven-scm-plugin</artifactId> <executions>
384 <execution> <id>buildNumber-commit</id> <phase>verify</phase>
385 <goals> <goal>checkin</goal> </goals> </execution> </executions>
386 <configuration> <username>${username}</username>
387 <password>${password}</password> <message> Update buildNumber to
388 ${buildNumber} </message> </configuration> </plugin>
389 -->
390 <plugin>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-antrun-plugin</artifactId>
393 <executions>
394 <execution>
395 <id>rpm-copyToRepo</id>
396 <phase>deploy</phase>
397 <goals>
398 <goal>run</goal>
399 </goals>
400 <configuration>
401 <tasks>
402 <property name="repo.base"
403 location="${distributions.root}/${distribution.label}/i386/os" />
404 <copy todir="${repo.base}/Packages" verbose="true">
405 <fileset dir="target">
406 <include name="rpm/RPMS/*/*.rpm" />
407 </fileset>
408 <flattenmapper />
409 </copy>
410 <exec executable="/usr/bin/createrepo">
411 <arg value="${repo.base}" />
412 </exec>
413 </tasks>
414 </configuration>
415 </execution>
416 </executions>
417 </plugin>
418 </plugins>
419 </build>
420
421 </profile>
422 </profiles>
423 </project>