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.server
</artifactId>
153 <version>${project.version}
</version>
156 <groupId>org.argeo.slc.dep
</groupId>
157 <artifactId>org.argeo.slc.dep.sdk
</artifactId>
158 <version>${project.version}
</version>
169 <exists>/usr/bin/rpmbuild
</exists>
173 <package.version
>${project.version}
</package.version
>
174 <distribution.label
>argeo
</distribution.label
>
175 <distribution.root
>/net/cash/srv/yumrepos/argeo-el/
5/argeo-testing/
</distribution.root
>
180 <groupId>org.codehaus.mojo
</groupId>
181 <artifactId>rpm-maven-plugin
</artifactId>
182 <extensions>true
</extensions>
184 <version>${package.version}
</version>
185 <release>r${buildNumber}.${distribution.label}
</release>
186 <copyright>2010 Argeo
</copyright>
187 <distribution>${distribution.label}
</distribution>
188 <packager>mbaudier@argeo.org
</packager>
189 <group>Applications/System
</group>
190 <prefix>/usr
</prefix>
195 <phase>package
</phase>
202 <directory>/usr/bin
</directory>
203 <username>root
</username>
204 <groupname>root
</groupname>
205 <filemode>755</filemode>
206 <directoryIncluded>false
</directoryIncluded>
209 <location>src/main/rpm/usr/bin
</location>
217 <directory>/etc/init.d
</directory>
218 <username>root
</username>
219 <groupname>root
</groupname>
220 <filemode>755</filemode>
221 <directoryIncluded>false
</directoryIncluded>
224 <location>src/main/rpm/etc/init.d
</location>
232 <directory>/etc/slc-agent
</directory>
233 <username>root
</username>
234 <groupname>root
</groupname>
235 <filemode>644</filemode>
236 <configuration>true
</configuration>
239 <location>src/main/rpm/etc/slc-agent
</location>
247 <directory>/etc/slc-server
</directory>
248 <username>root
</username>
249 <groupname>root
</groupname>
250 <filemode>644</filemode>
251 <configuration>true
</configuration>
254 <location>src/main/rpm/etc/slc-server
</location>
262 <directory>/usr/share/osgi
</directory>
263 <username>root
</username>
264 <groupname>root
</groupname>
265 <filemode>644</filemode>
266 <directoryIncluded>false
</directoryIncluded>
269 <location>target/lib
</location>
271 <include>*.jar
</include>
277 <postinstallScriptlet>
278 <scriptFile>src/main/scripts/postinstall
</scriptFile>
279 </postinstallScriptlet>
281 <scriptFile>src/main/scripts/preremove
</scriptFile>
282 </preremoveScriptlet>
284 <require>java
</require>
285 <!-- For the start/stop scripts -->
286 <require>expect
</require>
292 <phase>package
</phase>
297 <name>${project.artifactId}-pdesources
</name>
300 <directory>/usr/src/osgi/pde
</directory>
301 <username>root
</username>
302 <groupname>root
</groupname>
303 <filemode>644</filemode>
304 <directoryIncluded>false
</directoryIncluded>
307 <location>target/libsrc
</location>
309 <include>*.jar
</include>
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>
332 <configuration>true
</configuration>
335 <location>../../demo/site
</location>
337 <include>**
</include>
340 <exclude>*.pom.xml
</exclude>
341 <exclude>.svn
</exclude>
342 <exclude>**/.svn/**
</exclude>
353 <groupId>org.apache.maven.plugins
</groupId>
354 <artifactId>maven-antrun-plugin
</artifactId>
357 <id>rpm-copyToRepo
</id>
358 <phase>install
</phase>
364 <delete verbose=
"true">
365 <fileset dir=
"${distribution.root}" includes=
"*/org.argeo.slc.sdk-*.rpm" />
367 <copy todir=
"${distribution.root}/x86_64" verbose=
"true">
368 <fileset dir=
"target">
369 <include name=
"rpm/*/RPMS/*/*.rpm" />
373 <exec executable=
"/usr/bin/createrepo">
374 <arg value=
"${distribution.root}/x86_64" />
376 <copy todir=
"${distribution.root}/i386" verbose=
"true">
377 <fileset dir=
"target">
378 <include name=
"rpm/*/RPMS/*/*.rpm" />
382 <exec executable=
"/usr/bin/createrepo">
383 <arg value=
"${distribution.root}/i386" />