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>
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>-->
97 <!-- <configuration>-->
99 <!-- <descriptor>src/assembly/dist.xml</descriptor>-->
100 <!-- <descriptor>src/assembly/devel.xml</descriptor>-->
101 <!-- </descriptors>-->
102 <!-- </configuration>-->
105 <!-- <id>attach-assembly</id>-->
106 <!-- <phase>package</phase>-->
108 <!-- <goal>single</goal>-->
111 <!-- </executions>-->
113 <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId>
114 <version>1.1</version> <executions> <execution> <id>create-repository</id>
115 <phase>deploy</phase> <goals> <goal>exec</goal> </goals> </execution> </executions>
116 <configuration> <executable>${argeo.p2.cmd}</executable> optional <workingDirectory>/tmp</workingDirectory>
117 <arguments> <argument>-noSplash</argument> <argument>-application</argument>
118 <argument>org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher</argument>
119 <argument>-metadataRepository</argument> <argument>file:${argeo.p2.repository}</argument>
120 <argument>-artifactRepository</argument> <argument>file:${argeo.p2.repository}</argument>
121 <argument>-bundles</argument> <argument>${project.build.directory}</argument>
122 <argument>-features</argument> <argument>${project.build.directory}</argument>
123 <argument>-compress</argument> <argument>-publishArtifacts</argument> </arguments>
124 </configuration> </plugin> -->
125 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
126 <executions> <execution> <id>p2-copyToRepo</id> <phase>deploy</phase> <goals>
127 <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${project.build.directory}/repobase"
128 /> <copy todir="${project.build.directory}/repobase"> <fileset dir="${project.build.directory}/lib">
129 <include name="*.jar" /> </fileset> <fileset dir="${project.build.directory}/libsrc">
130 <include name="*.jar" /> </fileset> </copy> <exec executable="${argeo.p2.cmd}">
131 <arg value="-noSplash" /> <arg value="-application" /> <arg value="org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher"
132 /> <arg value="-metadataRepository" /> <arg value="file:${argeo.p2.repository}"
133 /> <arg value="-artifactRepository" /> <arg value="file:${argeo.p2.repository}"
134 /> <arg value="-bundles" /> <arg value="${project.build.directory}/repobase"
135 /> <arg value="-features" /> <arg value="${project.build.directory}/repobase"
136 /> <arg value="-compress" /> <arg value="-publishArtifacts" /> </exec> </tasks>
137 </configuration> </execution> </executions> </plugin> -->
142 <groupId>org.argeo.slc.dep
</groupId>
143 <artifactId>org.argeo.slc.dep.sdk
</artifactId>
144 <version>${project.version}
</version>
147 <groupId>org.argeo.slc.dep
</groupId>
148 <artifactId>org.argeo.slc.dep.sdk.sources
</artifactId>
149 <version>${project.version}
</version>
161 <exists>/usr/bin/rpmbuild
</exists>
166 <package.version
>${project.version}
</package.version
>
167 <distribution.label
>argeo
</distribution.label
>
168 <distribution.root
>/var/argeo/linux/argeo-el/
5/argeo-testing
</distribution.root
>
173 <groupId>org.codehaus.mojo
</groupId>
174 <artifactId>rpm-maven-plugin
</artifactId>
175 <version>2.1-alpha-
1</version>
176 <extensions>true
</extensions>
178 <version>${package.version}
</version>
179 <release>r${buildNumber}.${distribution.label}
</release>
180 <copyright>2010 Argeo
</copyright>
181 <distribution>${distribution.label}
</distribution>
182 <packager>mbaudier@argeo.org
</packager>
183 <group>Applications/System
</group>
184 <prefix>/usr
</prefix>
189 <phase>deploy
</phase>
196 <directory>/usr/bin
</directory>
197 <username>root
</username>
198 <groupname>root
</groupname>
199 <filemode>755</filemode>
200 <directoryIncluded>false
</directoryIncluded>
203 <location>src/main/rpm/usr/bin
</location>
211 <directory>/etc/init.d
</directory>
212 <username>root
</username>
213 <groupname>root
</groupname>
214 <filemode>755</filemode>
215 <directoryIncluded>false
</directoryIncluded>
218 <location>src/main/rpm/etc/init.d
</location>
226 <directory>/etc/slc-agent
</directory>
227 <username>root
</username>
228 <groupname>root
</groupname>
229 <filemode>644</filemode>
230 <configuration>true
</configuration>
233 <location>src/main/rpm/etc/slc-agent
</location>
241 <directory>/etc/slc-server
</directory>
242 <username>root
</username>
243 <groupname>root
</groupname>
244 <filemode>644</filemode>
245 <configuration>true
</configuration>
248 <location>src/main/rpm/etc/slc-server
</location>
256 <directory>/usr/share/osgi
</directory>
257 <username>root
</username>
258 <groupname>root
</groupname>
259 <filemode>644</filemode>
260 <directoryIncluded>false
</directoryIncluded>
263 <location>target/lib
</location>
265 <include>*.jar
</include>
271 <postinstallScriptlet>
272 <scriptFile>src/main/scripts/postinstall
</scriptFile>
273 </postinstallScriptlet>
275 <scriptFile>src/main/scripts/preremove
</scriptFile>
276 </preremoveScriptlet>
278 <require>java
</require>
279 <!-- For the start/stop scripts -->
280 <require>expect
</require>
286 <phase>deploy
</phase>
291 <name>${project.artifactId}-pdesources
</name>
294 <directory>/usr/src/osgi/pde
</directory>
295 <username>root
</username>
296 <groupname>root
</groupname>
297 <filemode>644</filemode>
298 <directoryIncluded>false
</directoryIncluded>
301 <location>target/libsrc
</location>
303 <include>*.jar
</include>
310 <require>org.argeo.slc.sdk
</require>
316 <phase>deploy
</phase>
321 <name>${project.artifactId}-demo
</name>
324 <directory>/var/lib/slc-agent/modules
</directory>
325 <username>root
</username>
326 <groupname>root
</groupname>
327 <filemode>644</filemode>
328 <directoryIncluded>false
</directoryIncluded>
331 <location>../../demo/site
</location>
333 <include>org.argeo.*/**
</include>
336 <exclude>pom.xml
</exclude>
337 <exclude>target
</exclude>
338 <exclude>.svn
</exclude>
339 <exclude>**/.svn/**
</exclude>
346 <require>org.argeo.slc.sdk
</require>
352 <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
353 <executions> <execution> <id>rpm-copyToRepo</id> <phase>deploy</phase> <goals>
354 <goal>run</goal> </goals> <configuration> <tasks> <mkdir dir="${distribution.root}/i386"
355 /> <mkdir dir="${distribution.root}/x86_64" /> <delete verbose="true"> <fileset
356 dir="${distribution.root}" includes="*/org.argeo.slc.sdk-*.rpm" /> </delete>
357 <copy todir="${distribution.root}/x86_64" verbose="true"> <fileset dir="target">
358 <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper /> </copy>
359 <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/x86_64"
360 /> </exec> <copy todir="${distribution.root}/i386" verbose="true"> <fileset
361 dir="target"> <include name="rpm/*/RPMS/*/*.rpm" /> </fileset> <flattenmapper
362 /> </copy> <exec executable="/usr/bin/createrepo"> <arg value="${distribution.root}/i386"
363 /> </exec> </tasks> </configuration> </execution> </executions> </plugin> -->