]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/slc-maven/pom.xml
Improve RPM
[gpl/argeo-slc.git] / dist / slc-maven / pom.xml
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>
4 <parent>
5 <groupId>org.argeo.slc</groupId>
6 <artifactId>dist</artifactId>
7 <version>0.13.1-SNAPSHOT</version>
8 </parent>
9 <groupId>org.argeo.slc.dist</groupId>
10 <artifactId>slc-maven</artifactId>
11 <packaging>pom</packaging>
12 <name>SLC Distribution Maven</name>
13 <dependencies>
14 <dependency>
15 <groupId>org.argeo.slc.runtime</groupId>
16 <artifactId>org.argeo.slc.support.maven</artifactId>
17 </dependency>
18 </dependencies>
19 <profiles>
20 <profile>
21 <id>rpmbuild</id>
22 <build>
23 <plugins>
24 <plugin>
25 <groupId>org.codehaus.mojo</groupId>
26 <artifactId>rpm-maven-plugin</artifactId>
27 <executions>
28 <execution>
29 <id>rpm-slc-maven</id>
30 <phase>package</phase>
31 <goals>
32 <goal>rpm</goal>
33 </goals>
34 <configuration>
35 <name>slc-maven</name>
36 <copyright>2011 Argeo</copyright>
37 <mappings>
38 <mapping>
39 <directory>/usr/share/osgi</directory>
40 <username>root</username>
41 <groupname>root</groupname>
42 <filemode>644</filemode>
43 <directoryIncluded>false</directoryIncluded>
44 <dependency>
45 <includes>
46 <include>org.argeo.slc.runtime:org.argeo.slc.support.maven</include>
47 </includes>
48 </dependency>
49 </mapping>
50 <mapping>
51 <directory>/var/lib/slc/.m2</directory>
52 <username>slc</username>
53 <groupname>slc</groupname>
54 <filemode>644</filemode>
55 <directoryIncluded>false</directoryIncluded>
56 <sources>
57 <source>
58 <location>src/main/var/lib/slc/.m2</location>
59 </source>
60 </sources>
61 </mapping>
62 </mappings>
63 <preremoveScriptlet>
64 <scriptFile>src/main/scripts/preremove</scriptFile>
65 </preremoveScriptlet>
66 <requires>
67 <require>slc</require>
68 </requires>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
73 </plugins>
74 </build>
75 </profile>
76 </profiles>
77 </project>