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.13.1-SNAPSHOT
</version>
9 <groupId>org.argeo.slc.dist
</groupId>
10 <artifactId>org.argeo.slc.sdk
</artifactId>
11 <packaging>pom
</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>
48 <copyArtifacts>true
</copyArtifacts>
58 <useDependencies>false
</useDependencies>
59 <onlyCheck>true
</onlyCheck>
64 <!-- Make sure that no bundle will be started -->
65 <argeo.osgi.start
>XXX
</argeo.osgi.start
>
67 ${project.build.directory}/lib;in=*.jar,
75 <artifactId>maven-resources-plugin
</artifactId>
79 <phase>process-resources
</phase>
81 <goal>copy-resources
</goal>
84 <outputDirectory>${basedir}/target/base
</outputDirectory>
87 <directory>src/main/base
</directory>
88 <filtering>true
</filtering>
96 <groupId>org.apache.maven.plugins
</groupId>
97 <artifactId>maven-assembly-plugin
</artifactId>
100 <descriptor>src/assembly/dist.xml
</descriptor>
101 <descriptor>src/assembly/devel.xml
</descriptor>
106 <id>attach-assembly
</id>
107 <phase>package
</phase>
114 <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId>
115 <version>1.1</version> <executions> <execution> <id>create-repository</id>
116 <phase>deploy</phase> <goals> <goal>exec</goal> </goals> </execution> </executions>
117 <configuration> <executable>${argeo.p2.cmd}</executable> optional <workingDirectory>/tmp</workingDirectory>
118 <arguments> <argument>-noSplash</argument> <argument>-application</argument>
119 <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
120 <argument>-metadataRepository</argument> <argument>file:${argeo.p2.repository}</argument>
121 <argument>-artifactRepository</argument> <argument>file:${argeo.p2.repository}</argument>
122 <argument>-bundles</argument> <argument>${project.build.directory}</argument>
123 <argument>-features</argument> <argument>${project.build.directory}</argument>
124 <argument>-compress</argument> <argument>-publishArtifacts</argument> </arguments>
125 </configuration> </plugin> -->
126 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
127 <executions> <execution> <id>p2-copyToRepo</id> <phase>deploy</phase> <goals>
128 <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${project.build.directory}/repobase"
129 /> <copy todir="${project.build.directory}/repobase"> <fileset dir="${project.build.directory}/lib">
130 <include name="*.jar" /> </fileset> <fileset dir="${project.build.directory}/libsrc">
131 <include name="*.jar" /> </fileset> </copy> <exec executable="${argeo.p2.cmd}">
132 <arg value="-noSplash" /> <arg value="-application" /> <arg value="org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher"
133 /> <arg value="-metadataRepository" /> <arg value="file:${argeo.p2.repository}"
134 /> <arg value="-artifactRepository" /> <arg value="file:${argeo.p2.repository}"
135 /> <arg value="-bundles" /> <arg value="${project.build.directory}/repobase"
136 /> <arg value="-features" /> <arg value="${project.build.directory}/repobase"
137 /> <arg value="-compress" /> <arg value="-publishArtifacts" /> </exec> </tasks>
138 </configuration> </execution> </executions> </plugin> -->
143 <groupId>org.argeo.slc.dep
</groupId>
144 <artifactId>org.argeo.slc.dep.sdk.rcp
</artifactId>
145 <version>${version.slc}
</version>
157 <exists>/usr/bin/rpmbuild
</exists>
162 <package.version
>${version.slc}
</package.version
>
163 <distribution.label
>argeo
</distribution.label
>
164 <distribution.root
>/var/argeo/linux/argeo-el/
5/argeo-testing
</distribution.root
>
169 <groupId>org.codehaus.mojo
</groupId>
170 <artifactId>rpm-maven-plugin
</artifactId>
171 <version>2.1-alpha-
1</version>
172 <extensions>true
</extensions>
174 <version>${package.version}
</version>
175 <release>r${buildNumber}.${distribution.label}
</release>
176 <copyright>2010 Argeo
</copyright>
177 <distribution>${distribution.label}
</distribution>
178 <packager>mbaudier@argeo.org
</packager>
179 <group>Applications/System
</group>
180 <prefix>/usr
</prefix>
185 <phase>deploy
</phase>
192 <directory>/usr/bin
</directory>
193 <username>root
</username>
194 <groupname>root
</groupname>
195 <filemode>755</filemode>
196 <directoryIncluded>false
</directoryIncluded>
199 <location>src/main/rpm/usr/bin
</location>
207 <directory>/etc/init.d
</directory>
208 <username>root
</username>
209 <groupname>root
</groupname>
210 <filemode>755</filemode>
211 <directoryIncluded>false
</directoryIncluded>
214 <location>src/main/rpm/etc/init.d
</location>
222 <directory>/etc/slc-agent
</directory>
223 <username>root
</username>
224 <groupname>root
</groupname>
225 <filemode>644</filemode>
226 <configuration>true
</configuration>
229 <location>src/main/rpm/etc/slc-agent
</location>
237 <directory>/etc/slc-server
</directory>
238 <username>root
</username>
239 <groupname>root
</groupname>
240 <filemode>644</filemode>
241 <configuration>true
</configuration>
244 <location>src/main/rpm/etc/slc-server
</location>
252 <directory>/usr/share/osgi
</directory>
253 <username>root
</username>
254 <groupname>root
</groupname>
255 <filemode>644</filemode>
256 <directoryIncluded>false
</directoryIncluded>
259 <location>target/lib
</location>
261 <include>*.jar
</include>
267 <postinstallScriptlet>
268 <scriptFile>src/main/scripts/postinstall
</scriptFile>
269 </postinstallScriptlet>
271 <scriptFile>src/main/scripts/preremove
</scriptFile>
272 </preremoveScriptlet>
274 <require>java
</require>
275 <!-- For the start/stop scripts -->
276 <require>expect
</require>
282 <phase>deploy
</phase>
287 <name>${project.artifactId}-pdesources
</name>
290 <directory>/usr/src/osgi/pde
</directory>
291 <username>root
</username>
292 <groupname>root
</groupname>
293 <filemode>644</filemode>
294 <directoryIncluded>false
</directoryIncluded>
297 <location>target/libsrc
</location>
299 <include>*.jar
</include>
306 <require>org.argeo.slc.sdk
</require>
312 <phase>deploy
</phase>
317 <name>${project.artifactId}-demo
</name>
320 <directory>/var/lib/slc-agent/modules
</directory>
321 <username>root
</username>
322 <groupname>root
</groupname>
323 <filemode>644</filemode>
324 <directoryIncluded>false
</directoryIncluded>
327 <location>../../demo/site
</location>
329 <include>org.argeo.*/**
</include>
332 <exclude>pom.xml
</exclude>
333 <exclude>target
</exclude>
334 <exclude>.svn
</exclude>
335 <exclude>**/.svn/**
</exclude>
342 <require>org.argeo.slc.sdk
</require>
343 <!-- <require> org.argeo.slc.dep.sdk.rcp</require> -->
349 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
350 <executions> <execution> <id>rpm-copyToRepo</id> <phase>deploy</phase> <goals>
351 <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${distribution.root}/i386"
352 /> <mkdir dir="${distribution.root}/x86_64" /> <delete verbose="true"> <fileset
353 dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" /> </delete>
354 <copy todir="${distribution.root}/x86_64" verbose="true"> <fileset dir="target">
355 <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper /> </copy>
356 <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/x86_64"
357 /> </exec> <copy todir="${distribution.root}/i386" verbose="true"> <fileset
358 dir="target"> <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper
359 /> </copy> <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/i386"
360 /> </exec> </tasks> </configuration> </execution> </executions> </plugin> -->