Improve RPM packaging
[gpl/argeo-suite.git] / dist / argeo-office / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.argeo.suite</groupId>
7 <artifactId>dist</artifactId>
8 <version>0.1.13-SNAPSHOT</version>
9 <relativePath>..</relativePath>
10 </parent>
11 <artifactId>argeo-office</artifactId>
12 <packaging>pom</packaging>
13 <name>Argeo Office</name>
14 <dependencies>
15 <dependency>
16 <groupId>org.argeo.suite</groupId>
17 <artifactId>org.argeo.suite.standard</artifactId>
18 <version>0.1.13-SNAPSHOT</version>
19 </dependency>
20 <dependency>
21 <groupId>org.argeo.suite</groupId>
22 <artifactId>org.argeo.suite.tracker</artifactId>
23 <version>0.1.13-SNAPSHOT</version>
24 </dependency>
25 </dependencies>
26 <profiles>
27 <profile>
28 <id>dist</id>
29 <dependencies>
30 <dependency>
31 <groupId>org.argeo.suite</groupId>
32 <artifactId>org.argeo.suite.dep.e4.rap</artifactId>
33 <version>0.1.13-SNAPSHOT</version>
34 </dependency>
35 <dependency>
36 <groupId>org.argeo.commons</groupId>
37 <artifactId>osgi-boot</artifactId>
38 <type>zip</type>
39 <version>${version.argeo-commons}</version>
40 </dependency>
41 <dependency>
42 <groupId>org.argeo.commons</groupId>
43 <artifactId>argeo-node</artifactId>
44 <type>zip</type>
45 <version>${version.argeo-commons}</version>
46 </dependency>
47 </dependencies>
48 <build>
49 <plugins>
50 <plugin>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-assembly-plugin</artifactId>
53 <configuration>
54 <finalName>argeo-suite-${project.version}</finalName>
55 <appendAssemblyId>false</appendAssemblyId>
56 <descriptors>
57 <descriptor>assembly/argeo-office-e4-rap.xml</descriptor>
58 </descriptors>
59 </configuration>
60 <executions>
61 <execution>
62 <id>assembly-base</id>
63 <phase>package</phase>
64 <goals>
65 <goal>single</goal>
66 </goals>
67 </execution>
68 </executions>
69 </plugin>
70 </plugins>
71 </build>
72 </profile>
73 <profile>
74 <id>rpmbuild</id>
75 <build>
76 <plugins>
77 <plugin>
78 <artifactId>maven-assembly-plugin</artifactId>
79 <executions>
80 <execution>
81 <id>prepare-source</id>
82 <phase>package</phase>
83 <goals>
84 <goal>single</goal>
85 </goals>
86 <configuration>
87 <descriptorRefs>
88 <descriptorRef>a2-source</descriptorRef>
89 </descriptorRefs>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 <plugin>
95 <groupId>org.codehaus.mojo</groupId>
96 <artifactId>rpm-maven-plugin</artifactId>
97 <executions>
98 <execution>
99 <id>rpm-node</id>
100 <phase>package</phase>
101 <goals>
102 <goal>rpm</goal>
103 </goals>
104 <configuration>
105 <name>argeo-office</name>
106 <mappings>
107 <mapping>
108 <directory>/etc/argeo/conf.d</directory>
109 <username>root</username>
110 <groupname>argeo</groupname>
111 <filemode>640</filemode>
112 <configuration>noreplace</configuration>
113 <directoryIncluded>false</directoryIncluded>
114 <sources>
115 <source>
116 <location>base/etc/argeo/conf.d</location>
117 <includes>
118 <include>*.ini</include>
119 <include>*.txt</include>
120 </includes>
121 </source>
122 </sources>
123 </mapping>
124 <mapping>
125 <directory>/usr/share/osgi</directory>
126 <username>root</username>
127 <groupname>root</groupname>
128 <filemode>644</filemode>
129 <directoryIncluded>true</directoryIncluded>
130 <sources>
131 <source>
132 <location>${project.build.directory}/${project.artifactId}-${project.version}-a2-source</location>
133 <includes>
134 <include>**/*.jar</include>
135 </includes>
136 </source>
137 </sources>
138 </mapping>
139 </mappings>
140 <requires>
141 <require>argeo-node</require>
142 <require>argeo-suite-e4-rap</require>
143 </requires>
144 </configuration>
145 </execution>
146 </executions>
147 </plugin>
148 </plugins>
149 </build>
150 </profile>
151 </profiles>
152 </project>