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>dep
</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}
</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 ${basedir}/target;in=*.jar,
74 <artifactId>maven-resources-plugin
</artifactId>
78 <phase>validate
</phase>
80 <goal>copy-resources
</goal>
83 <outputDirectory>${basedir}/target/base
</outputDirectory>
86 <directory>src/main/base
</directory>
87 <filtering>true
</filtering>
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>
103 <groupId>org.apache.maven.plugins
</groupId>
104 <artifactId>maven-assembly-plugin
</artifactId>
107 <descriptor>src/assembly/dist.xml
</descriptor>
112 <id>attach-assembly
</id>
113 <phase>package
</phase>
121 <groupId>org.codehaus.mojo
</groupId>
122 <artifactId>exec-maven-plugin
</artifactId>
123 <version>1.1</version>
126 <id>create-repository
</id>
127 <phase>deploy
</phase>
134 <executable>${argeo.p2.cmd}
</executable>
136 <workingDirectory>/tmp
</workingDirectory>
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>
158 <groupId>org.argeo.slc.dep
</groupId>
159 <artifactId>org.argeo.slc.dep.server
</artifactId>
160 <version>${project.version}
</version>
163 <groupId>org.argeo.slc.dep
</groupId>
164 <artifactId>org.argeo.slc.dep.detached
</artifactId>
165 <version>${project.version}
</version>
168 <groupId>org.argeo.slc.runtime
</groupId>
169 <artifactId>org.argeo.slc.unit
</artifactId>
170 <version>${project.version}
</version>
173 <groupId>org.argeo.slc.server
</groupId>
174 <artifactId>org.argeo.slc.ria
</artifactId>
181 <groupId>org.argeo.slc.runtime
</groupId>
182 <artifactId>org.argeo.slc.launcher
</artifactId>
183 <version>${project.version}
</version>
185 <classifier>base
</classifier>
191 <id>sdkWithModules
</id>
193 <activeByDefault>true
</activeByDefault>
197 <groupId>org.argeo.slc.modules
</groupId>
198 <artifactId>org.argeo.slc.modules.agent.bundles
</artifactId>
199 <version>${project.version}
</version>
203 <groupId>org.argeo.slc.modules
</groupId>
204 <artifactId>org.argeo.slc.modules.server.bundles
</artifactId>
205 <version>${project.version}
</version>
211 <id>sdkWithoutModules
</id>
216 <argeo.p2.repository
>/var/argeo/projects/SLC/www/sdk
</argeo.p2.repository
>
220 <groupId>org.argeo.slc.modules
</groupId>
221 <artifactId>org.argeo.slc.modules.agent.bundles
</artifactId>
222 <version>${project.version}
</version>
226 <groupId>org.argeo.slc.modules
</groupId>
227 <artifactId>org.argeo.slc.modules.server.bundles
</artifactId>
228 <version>${project.version}
</version>
234 <id>rpmbuild
</id><!--
240 <exists>/usr/bin/rpmbuild</exists>
244 <package.version
>${project.version}
</package.version
>
245 <distribution.label
>argeo
</distribution.label
>
250 <groupId>org.codehaus.mojo
</groupId>
251 <artifactId>rpm-maven-plugin
</artifactId>
252 <version>2.0.1</version>
253 <extensions>true
</extensions>
257 <phase>package
</phase>
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>
273 <directory>/usr/bin
</directory>
274 <username>root
</username>
275 <groupname>root
</groupname>
276 <filemode>755</filemode>
277 <directoryIncluded>false
</directoryIncluded>
280 <location>src/main/rpm/usr/bin
</location>
288 <directory>/etc/init.d
</directory>
289 <username>root
</username>
290 <groupname>root
</groupname>
291 <filemode>755</filemode>
292 <directoryIncluded>false
</directoryIncluded>
295 <location>src/main/rpm/etc/init.d
</location>
303 <directory>/etc/slc-agent
</directory>
304 <username>root
</username>
305 <groupname>root
</groupname>
306 <filemode>644</filemode>
307 <configuration>true
</configuration>
310 <location>src/main/rpm/etc/slc-agent
</location>
318 <directory>/etc/slc-server
</directory>
319 <username>root
</username>
320 <groupname>root
</groupname>
321 <filemode>644</filemode>
322 <configuration>true
</configuration>
325 <location>src/main/rpm/etc/slc-server
</location>
333 <directory>/usr/share/osgi
</directory>
334 <username>root
</username>
335 <groupname>root
</groupname>
336 <filemode>644</filemode>
337 <directoryIncluded>false
</directoryIncluded>
340 <location>target
</location>
342 <include>*.jar
</include>
348 <directory>/usr/src/osgi/pde
</directory>
349 <username>root
</username>
350 <groupname>root
</groupname>
351 <filemode>644</filemode>
352 <directoryIncluded>false
</directoryIncluded>
355 <location>target/libsrc
</location>
357 <include>*.jar
</include>
363 <postinstallScriptlet>
364 <scriptFile>src/main/scripts/postinstall
</scriptFile>
365 </postinstallScriptlet>
367 <scriptFile>src/main/scripts/preremove
</scriptFile>
368 </preremoveScriptlet>
370 <require>java-
1.6.0-openjdk
</require>
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>
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>
391 <groupId>org.apache.maven.plugins
</groupId>
392 <artifactId>maven-antrun-plugin
</artifactId>
395 <id>rpm-copyToRepo
</id>
396 <phase>deploy
</phase>
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" />
410 <exec executable=
"/usr/bin/createrepo">
411 <arg value=
"${repo.base}" />