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>
5 <groupId>org.argeo.slc
</groupId>
6 <artifactId>dist
</artifactId>
7 <version>0.12.2-SNAPSHOT
</version>
9 <groupId>org.argeo.slc.dist
</groupId>
10 <artifactId>org.argeo.slc.sdk
</artifactId>
11 <packaging>jar
</packaging>
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
>
20 <groupId>org.apache.maven.plugins
</groupId>
21 <artifactId>maven-dependency-plugin
</artifactId>
24 <id>copy-dependencies
</id>
25 <phase>process-resources
</phase>
27 <goal>copy-dependencies
</goal>
30 <includeTypes>jar
</includeTypes>
31 <outputDirectory>${project.build.directory}/lib
</outputDirectory>
37 <groupId>org.argeo.maven.plugins
</groupId>
38 <artifactId>maven-argeo-osgi-plugin
</artifactId>
39 <version>${version.maven-argeo-osgi}
</version>
43 <phase>process-resources
</phase>
45 <goal>pde-sources
</goal>
57 <useDependencies>false
</useDependencies>
58 <onlyCheck>true
</onlyCheck>
63 <!-- Make sure that no bundle will be started -->
64 <argeo.osgi.start
>XXX
</argeo.osgi.start
>
66 ${project.build.directory}/lib;in=*.jar,
74 <artifactId>maven-resources-plugin
</artifactId>
78 <phase>process-resources
</phase>
80 <goal>copy-resources
</goal>
83 <outputDirectory>${basedir}/target/base
</outputDirectory>
86 <directory>src/main/base
</directory>
87 <filtering>true
</filtering>
95 <groupId>org.apache.maven.plugins
</groupId>
96 <artifactId>maven-assembly-plugin
</artifactId>
99 <descriptor>src/assembly/dist.xml
</descriptor>
100 <descriptor>src/assembly/devel.xml
</descriptor>
105 <id>attach-assembly
</id>
106 <phase>package
</phase>
114 <groupId>org.codehaus.mojo
</groupId>
115 <artifactId>exec-maven-plugin
</artifactId>
116 <version>1.1</version>
119 <id>create-repository
</id>
120 <phase>deploy
</phase>
127 <executable>${argeo.p2.cmd}
</executable>
129 <workingDirectory>/tmp
</workingDirectory>
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>
151 <groupId>org.argeo.slc.dep
</groupId>
152 <artifactId>org.argeo.slc.dep.sdk
</artifactId>
153 <version>${project.version}
</version>
165 <exists>/usr/bin/rpmbuild
</exists>
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
>
177 <groupId>org.codehaus.mojo
</groupId>
178 <artifactId>rpm-maven-plugin
</artifactId>
179 <extensions>true
</extensions>
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>
192 <phase>package
</phase>
199 <directory>/usr/bin
</directory>
200 <username>root
</username>
201 <groupname>root
</groupname>
202 <filemode>755</filemode>
203 <directoryIncluded>false
</directoryIncluded>
206 <location>src/main/rpm/usr/bin
</location>
214 <directory>/etc/init.d
</directory>
215 <username>root
</username>
216 <groupname>root
</groupname>
217 <filemode>755</filemode>
218 <directoryIncluded>false
</directoryIncluded>
221 <location>src/main/rpm/etc/init.d
</location>
229 <directory>/etc/slc-agent
</directory>
230 <username>root
</username>
231 <groupname>root
</groupname>
232 <filemode>644</filemode>
233 <configuration>true
</configuration>
236 <location>src/main/rpm/etc/slc-agent
</location>
244 <directory>/etc/slc-server
</directory>
245 <username>root
</username>
246 <groupname>root
</groupname>
247 <filemode>644</filemode>
248 <configuration>true
</configuration>
251 <location>src/main/rpm/etc/slc-server
</location>
259 <directory>/usr/share/osgi
</directory>
260 <username>root
</username>
261 <groupname>root
</groupname>
262 <filemode>644</filemode>
263 <directoryIncluded>false
</directoryIncluded>
266 <location>target/lib
</location>
268 <include>*.jar
</include>
274 <postinstallScriptlet>
275 <scriptFile>src/main/scripts/postinstall
</scriptFile>
276 </postinstallScriptlet>
278 <scriptFile>src/main/scripts/preremove
</scriptFile>
279 </preremoveScriptlet>
281 <require>java
</require>
282 <!-- For the start/stop scripts -->
283 <require>expect
</require>
289 <phase>package
</phase>
294 <name>${project.artifactId}-pdesources
</name>
297 <directory>/usr/src/osgi/pde
</directory>
298 <username>root
</username>
299 <groupname>root
</groupname>
300 <filemode>644</filemode>
301 <directoryIncluded>false
</directoryIncluded>
304 <location>target/libsrc
</location>
306 <include>*.jar
</include>
313 <require>org.argeo.slc.sdk
</require>
319 <phase>package
</phase>
324 <name>${project.artifactId}-demo
</name>
327 <directory>/var/lib/slc-agent/modules
</directory>
328 <username>root
</username>
329 <groupname>root
</groupname>
330 <filemode>644</filemode>
331 <directoryIncluded>false
</directoryIncluded>
334 <location>../../demo/site
</location>
336 <include>org.argeo.*/**
</include>
339 <exclude>pom.xml
</exclude>
340 <exclude>target
</exclude>
341 <exclude>.svn
</exclude>
342 <exclude>**/.svn/**
</exclude>
349 <require>org.argeo.slc.sdk
</require>
356 <groupId>org.apache.maven.plugins
</groupId>
357 <artifactId>maven-antrun-plugin
</artifactId>
360 <id>rpm-copyToRepo
</id>
361 <phase>install
</phase>
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" />
372 <copy todir=
"${distribution.root}/x86_64" verbose=
"true">
373 <fileset dir=
"target">
374 <include name=
"rpm/*/RPMS/*/*.rpm" />
378 <exec executable=
"/usr/bin/createrepo">
379 <arg value=
"${distribution.root}/x86_64" />
381 <copy todir=
"${distribution.root}/i386" verbose=
"true">
382 <fileset dir=
"target">
383 <include name=
"rpm/*/RPMS/*/*.rpm" />
387 <exec executable=
"/usr/bin/createrepo">
388 <arg value=
"${distribution.root}/i386" />