]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/org.argeo.slc.sdk/pom.xml
Deactivate maven in demo
[gpl/argeo-slc.git] / dist / 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.server</artifactId>
153 <version>${project.version}</version>
154 </dependency>
155 <dependency>
156 <groupId>org.argeo.slc.dep</groupId>
157 <artifactId>org.argeo.slc.dep.sdk</artifactId>
158 <version>${project.version}</version>
159 </dependency>
160 </dependencies>
161 <profiles>
162 <profile>
163 <id>rpmbuild</id>
164
165 <activation>
166 <os>
167 <name>Linux</name>
168 </os>
169 <file>
170 <exists>/usr/bin/rpmbuild</exists>
171 </file>
172 </activation>
173
174 <properties>
175 <package.version>${project.version}</package.version>
176 <distribution.label>argeo</distribution.label>
177 <distribution.root>/var/argeo/linux/argeo-el/5/argeo/testing/</distribution.root>
178 </properties>
179 <build>
180 <plugins>
181 <plugin>
182 <groupId>org.codehaus.mojo</groupId>
183 <artifactId>rpm-maven-plugin</artifactId>
184 <extensions>true</extensions>
185 <configuration>
186 <version>${package.version}</version>
187 <release>r${buildNumber}.${distribution.label}</release>
188 <copyright>2010 Argeo</copyright>
189 <distribution>${distribution.label}</distribution>
190 <packager>mbaudier@argeo.org</packager>
191 <group>Applications/System</group>
192 <prefix>/usr</prefix>
193 </configuration>
194 <executions>
195 <execution>
196 <id>rpm-sdk</id>
197 <phase>package</phase>
198 <goals>
199 <goal>rpm</goal>
200 </goals>
201 <configuration>
202 <mappings>
203 <mapping>
204 <directory>/usr/bin</directory>
205 <username>root</username>
206 <groupname>root</groupname>
207 <filemode>755</filemode>
208 <directoryIncluded>false</directoryIncluded>
209 <sources>
210 <source>
211 <location>src/main/rpm/usr/bin</location>
212 <includes>
213 <include>*</include>
214 </includes>
215 </source>
216 </sources>
217 </mapping>
218 <mapping>
219 <directory>/etc/init.d</directory>
220 <username>root</username>
221 <groupname>root</groupname>
222 <filemode>755</filemode>
223 <directoryIncluded>false</directoryIncluded>
224 <sources>
225 <source>
226 <location>src/main/rpm/etc/init.d</location>
227 <includes>
228 <include>*</include>
229 </includes>
230 </source>
231 </sources>
232 </mapping>
233 <mapping>
234 <directory>/etc/slc-agent</directory>
235 <username>root</username>
236 <groupname>root</groupname>
237 <filemode>644</filemode>
238 <configuration>true</configuration>
239 <sources>
240 <source>
241 <location>src/main/rpm/etc/slc-agent</location>
242 <includes>
243 <include>*</include>
244 </includes>
245 </source>
246 </sources>
247 </mapping>
248 <mapping>
249 <directory>/etc/slc-server</directory>
250 <username>root</username>
251 <groupname>root</groupname>
252 <filemode>644</filemode>
253 <configuration>true</configuration>
254 <sources>
255 <source>
256 <location>src/main/rpm/etc/slc-server</location>
257 <includes>
258 <include>*</include>
259 </includes>
260 </source>
261 </sources>
262 </mapping>
263 <mapping>
264 <directory>/usr/share/osgi</directory>
265 <username>root</username>
266 <groupname>root</groupname>
267 <filemode>644</filemode>
268 <directoryIncluded>false</directoryIncluded>
269 <sources>
270 <source>
271 <location>target/lib</location>
272 <includes>
273 <include>*.jar</include>
274 </includes>
275 </source>
276 </sources>
277 </mapping>
278 </mappings>
279 <postinstallScriptlet>
280 <scriptFile>src/main/scripts/postinstall</scriptFile>
281 </postinstallScriptlet>
282 <preremoveScriptlet>
283 <scriptFile>src/main/scripts/preremove</scriptFile>
284 </preremoveScriptlet>
285 <requires>
286 <require>java</require>
287 <!-- For the start/stop scripts -->
288 <require>expect</require>
289 </requires>
290 </configuration>
291 </execution>
292 <execution>
293 <id>rpm-devel</id>
294 <phase>package</phase>
295 <goals>
296 <goal>rpm</goal>
297 </goals>
298 <configuration>
299 <name>${project.artifactId}-pdesources</name>
300 <mappings>
301 <mapping>
302 <directory>/usr/src/osgi/pde</directory>
303 <username>root</username>
304 <groupname>root</groupname>
305 <filemode>644</filemode>
306 <directoryIncluded>false</directoryIncluded>
307 <sources>
308 <source>
309 <location>target/libsrc</location>
310 <includes>
311 <include>*.jar</include>
312 </includes>
313 </source>
314 </sources>
315 </mapping>
316 </mappings>
317 <requires>
318 <require>org.argeo.slc.sdk</require>
319 </requires>
320 </configuration>
321 </execution>
322 <execution>
323 <id>rpm-demo</id>
324 <phase>package</phase>
325 <goals>
326 <goal>rpm</goal>
327 </goals>
328 <configuration>
329 <name>${project.artifactId}-demo</name>
330 <mappings>
331 <mapping>
332 <directory>/var/lib/slc-agent/modules</directory>
333 <username>root</username>
334 <groupname>root</groupname>
335 <filemode>644</filemode>
336 <directoryIncluded>false</directoryIncluded>
337 <sources>
338 <source>
339 <location>../../demo/site</location>
340 <includes>
341 <include>**</include>
342 </includes>
343 <excludes>
344 <exclude>pom.xml</exclude>
345 <exclude>target</exclude>
346 <exclude>target/*</exclude>
347 <exclude>.svn</exclude>
348 <exclude>**/.svn/**</exclude>
349 </excludes>
350 </source>
351 </sources>
352 </mapping>
353 </mappings>
354 <requires>
355 <require>org.argeo.slc.sdk</require>
356 </requires>
357 </configuration>
358 </execution>
359 </executions>
360 </plugin>
361 <plugin>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-antrun-plugin</artifactId>
364 <executions>
365 <execution>
366 <id>rpm-copyToRepo</id>
367 <phase>install</phase>
368 <goals>
369 <goal>run</goal>
370 </goals>
371 <configuration>
372 <tasks>
373 <delete verbose="true">
374 <fileset dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" />
375 </delete>
376 <copy todir="${distribution.root}/x86_64" verbose="true">
377 <fileset dir="target">
378 <include name="rpm/*/RPMS/*/*.rpm" />
379 </fileset>
380 <flattenmapper />
381 </copy>
382 <exec executable="/usr/bin/createrepo">
383 <arg value="${distribution.root}/x86_64" />
384 </exec>
385 <copy todir="${distribution.root}/i386" verbose="true">
386 <fileset dir="target">
387 <include name="rpm/*/RPMS/*/*.rpm" />
388 </fileset>
389 <flattenmapper />
390 </copy>
391 <exec executable="/usr/bin/createrepo">
392 <arg value="${distribution.root}/i386" />
393 </exec>
394 </tasks>
395 </configuration>
396 </execution>
397 </executions>
398 </plugin>
399 </plugins>
400 </build>
401
402 </profile>
403 </profiles>
404 </project>