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>
165 <activation> <os> <name>Linux</name> </os> <file>
166 <exists>/usr/bin/rpmbuild</exists> </file> </activation>
169 <package.version
>${project.version}
</package.version
>
170 <distribution.label
>argeo
</distribution.label
>
171 <distribution.root
>/net/cash/srv/yumrepos/argeo-el/
5/argeo-testing/
</distribution.root
>
176 <groupId>org.codehaus.mojo
</groupId>
177 <artifactId>rpm-maven-plugin
</artifactId>
178 <extensions>true
</extensions>
180 <version>${package.version}
</version>
181 <release>r${buildNumber}.${distribution.label}
</release>
182 <copyright>2010 Argeo
</copyright>
183 <distribution>${distribution.label}
</distribution>
184 <packager>mbaudier@argeo.org
</packager>
185 <group>Applications/System
</group>
186 <prefix>/usr
</prefix>
191 <phase>package
</phase>
198 <directory>/usr/bin
</directory>
199 <username>root
</username>
200 <groupname>root
</groupname>
201 <filemode>755</filemode>
202 <directoryIncluded>false
</directoryIncluded>
205 <location>src/main/rpm/usr/bin
</location>
213 <directory>/etc/init.d
</directory>
214 <username>root
</username>
215 <groupname>root
</groupname>
216 <filemode>755</filemode>
217 <directoryIncluded>false
</directoryIncluded>
220 <location>src/main/rpm/etc/init.d
</location>
228 <directory>/etc/slc-agent
</directory>
229 <username>root
</username>
230 <groupname>root
</groupname>
231 <filemode>644</filemode>
232 <configuration>true
</configuration>
235 <location>src/main/rpm/etc/slc-agent
</location>
243 <directory>/etc/slc-server
</directory>
244 <username>root
</username>
245 <groupname>root
</groupname>
246 <filemode>644</filemode>
247 <configuration>true
</configuration>
250 <location>src/main/rpm/etc/slc-server
</location>
258 <directory>/usr/share/osgi
</directory>
259 <username>root
</username>
260 <groupname>root
</groupname>
261 <filemode>644</filemode>
262 <directoryIncluded>false
</directoryIncluded>
265 <location>target/lib
</location>
267 <include>*.jar
</include>
273 <postinstallScriptlet>
274 <scriptFile>src/main/scripts/postinstall
</scriptFile>
275 </postinstallScriptlet>
277 <scriptFile>src/main/scripts/preremove
</scriptFile>
278 </preremoveScriptlet>
280 <require>java
</require>
281 <!-- For the start/stop scripts -->
282 <require>expect
</require>
288 <phase>package
</phase>
293 <name>${project.artifactId}-pdesources
</name>
296 <directory>/usr/src/osgi/pde
</directory>
297 <username>root
</username>
298 <groupname>root
</groupname>
299 <filemode>644</filemode>
300 <directoryIncluded>false
</directoryIncluded>
303 <location>target/libsrc
</location>
305 <include>*.jar
</include>
312 <require>org.argeo.slc.sdk
</require>
318 <phase>package
</phase>
323 <name>${project.artifactId}-demo
</name>
326 <directory>/var/lib/slc-agent/modules
</directory>
327 <username>root
</username>
328 <groupname>root
</groupname>
329 <filemode>644</filemode>
330 <directoryIncluded>false
</directoryIncluded>
331 <configuration>true
</configuration>
334 <location>../../demo/site
</location>
336 <include>**
</include>
339 <exclude>*.pom.xml
</exclude>
340 <exclude>.svn
</exclude>
341 <exclude>**/.svn/**
</exclude>
348 <require>org.argeo.slc.sdk
</require>
355 <groupId>org.apache.maven.plugins
</groupId>
356 <artifactId>maven-antrun-plugin
</artifactId>
359 <id>rpm-copyToRepo
</id>
360 <phase>install
</phase>
366 <delete verbose=
"true">
367 <fileset dir=
"${distribution.root}" includes=
"*/org.argeo.slc.sdk-*.rpm" />
369 <copy todir=
"${distribution.root}/x86_64" verbose=
"true">
370 <fileset dir=
"target">
371 <include name=
"rpm/*/RPMS/*/*.rpm" />
375 <exec executable=
"/usr/bin/createrepo">
376 <arg value=
"${distribution.root}/x86_64" />
378 <copy todir=
"${distribution.root}/i386" verbose=
"true">
379 <fileset dir=
"target">
380 <include name=
"rpm/*/RPMS/*/*.rpm" />
384 <exec executable=
"/usr/bin/createrepo">
385 <arg value=
"${distribution.root}/i386" />