]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/slc/pom.xml
First working version of modular distribution creation while running the ProcessDistr...
[gpl/argeo-slc.git] / dist / slc / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2 <modelVersion>4.0.0</modelVersion>
3 <parent>
4 <groupId>org.argeo.slc</groupId>
5 <artifactId>dist</artifactId>
6 <version>1.1.19-SNAPSHOT</version>
7 </parent>
8 <artifactId>slc</artifactId>
9 <packaging>pom</packaging>
10 <name>SLC Distribution</name>
11 <profiles>
12 <profile>
13 <id>dist</id>
14 <build>
15 <plugins>
16 <!-- <plugin> -->
17 <!-- <groupId>org.apache.maven.plugins</groupId> -->
18 <!-- <artifactId>maven-dependency-plugin</artifactId> -->
19 <!-- <executions> -->
20 <!-- <execution> -->
21 <!-- <id>copy-dependencies-dist</id> -->
22 <!-- <phase>package</phase> -->
23 <!-- <goals> -->
24 <!-- <goal>copy-dependencies</goal> -->
25 <!-- </goals> -->
26 <!-- <configuration> -->
27 <!-- <includeTypes>jar</includeTypes> -->
28 <!-- <useRepositoryLayout>true</useRepositoryLayout> -->
29 <!-- <outputDirectory>${project.build.directory}/modulest</outputDirectory> -->
30 <!-- </configuration> -->
31 <!-- </execution> -->
32 <!-- </executions> -->
33 <!-- </plugin> -->
34 <plugin>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-assembly-plugin</artifactId>
37 <configuration>
38 <finalName>argeo-slc-${project.version}</finalName>
39 <appendAssemblyId>false</appendAssemblyId>
40 <descriptors>
41 <descriptor>src/assembly/dist.xml</descriptor>
42 </descriptors>
43 </configuration>
44 <executions>
45 <execution>
46 <id>assembly-base</id>
47 <phase>package</phase>
48 <goals>
49 <goal>single</goal>
50 </goals>
51 </execution>
52 </executions>
53 </plugin>
54 </plugins>
55 </build>
56 <dependencies>
57 <!-- Backend -->
58 <dependency>
59 <groupId>org.argeo.slc</groupId>
60 <artifactId>org.argeo.slc.dep.backend</artifactId>
61 <version>1.1.19-SNAPSHOT</version>
62 <type>pom</type>
63 </dependency>
64
65 <!-- SLC Libs -->
66 <dependency>
67 <groupId>org.argeo.slc</groupId>
68 <artifactId>org.argeo.slc.lib.jcr</artifactId>
69 <version>1.1.19-SNAPSHOT</version>
70 </dependency>
71 <dependency>
72 <groupId>org.argeo.slc</groupId>
73 <artifactId>org.argeo.slc.lib.repo</artifactId>
74 <version>1.1.19-SNAPSHOT</version>
75 </dependency>
76
77 <!-- Launcher -->
78 <dependency>
79 <groupId>org.argeo.slc</groupId>
80 <artifactId>org.argeo.slc.launcher</artifactId>
81 <version>1.1.19-SNAPSHOT</version>
82 <!-- <type>tar.gz</type> -->
83 <!-- <classifier>base</classifier> -->
84 </dependency>
85 </dependencies>
86 </profile>
87 <profile>
88 <id>rpmbuild</id>
89 <build>
90 <plugins>
91 <plugin>
92 <groupId>org.apache.maven.plugins</groupId>
93 <artifactId>maven-dependency-plugin</artifactId>
94 <executions>
95 <execution>
96 <id>copy-dependencies-rpm</id>
97 <phase>package</phase>
98 <goals>
99 <goal>copy</goal>
100 </goals>
101 <configuration>
102 <includeTypes>jar</includeTypes>
103 <stripVersion>true</stripVersion>
104 <outputDirectory>${project.build.directory}/boot</outputDirectory>
105 <artifactItems>
106 <artifactItem>
107 <groupId>org.argeo.slc</groupId>
108 <artifactId>org.argeo.slc.launcher</artifactId>
109 <version>${project.version}</version>
110 </artifactItem>
111 </artifactItems>
112 </configuration>
113 </execution>
114 </executions>
115 </plugin>
116 <plugin>
117 <groupId>org.codehaus.mojo</groupId>
118 <artifactId>rpm-maven-plugin</artifactId>
119 <executions>
120 <execution>
121 <id>rpm-slc</id>
122 <phase>package</phase>
123 <goals>
124 <goal>rpm</goal>
125 </goals>
126 <configuration>
127 <name>slc</name>
128 <mappings>
129 <mapping>
130 <directory>/usr/bin</directory>
131 <username>root</username>
132 <groupname>root</groupname>
133 <filemode>755</filemode>
134 <directoryIncluded>false</directoryIncluded>
135 <sources>
136 <source>
137 <location>src/main/rpm/usr/bin</location>
138 </source>
139 </sources>
140 </mapping>
141 <mapping>
142 <directory>/etc/init.d</directory>
143 <username>root</username>
144 <groupname>root</groupname>
145 <filemode>755</filemode>
146 <directoryIncluded>false</directoryIncluded>
147 <sources>
148 <source>
149 <location>src/main/rpm/etc/init.d</location>
150 </source>
151 </sources>
152 </mapping>
153 <mapping>
154 <directory>/etc/slc</directory>
155 <username>root</username>
156 <groupname>slc</groupname>
157 <filemode>640</filemode>
158 <configuration>noreplace</configuration>
159 <directoryIncluded>false</directoryIncluded>
160 <sources>
161 <source>
162 <location>src/main/rpm/etc/slc</location>
163 </source>
164 </sources>
165 </mapping>
166 <mapping>
167 <directory>/etc/slc-cl</directory>
168 <username>root</username>
169 <groupname>root</groupname>
170 <filemode>644</filemode>
171 <directoryIncluded>false</directoryIncluded>
172 <sources>
173 <source>
174 <location>src/main/rpm/etc/slc-cl</location>
175 </source>
176 </sources>
177 </mapping>
178 <mapping>
179 <directory>/usr/share/osgi/boot</directory>
180 <username>root</username>
181 <groupname>root</groupname>
182 <filemode>644</filemode>
183 <directoryIncluded>false</directoryIncluded>
184 <sources>
185 <source>
186 <location>${project.build.directory}/boot</location>
187 <includes>
188 <include>org.argeo.slc.launcher.jar</include>
189 </includes>
190 </source>
191 </sources>
192 </mapping>
193 <!-- Maven (even if not installed) -->
194 <mapping>
195 <directory>/var/lib/slc/.m2</directory>
196 <username>slc</username>
197 <groupname>slc</groupname>
198 <filemode>600</filemode>
199 <directoryIncluded>false</directoryIncluded>
200 <sources>
201 <source>
202 <location>src/main/rpm/var/lib/slc/.m2</location>
203 </source>
204 </sources>
205 </mapping>
206 </mappings>
207 <preinstallScriptlet>
208 <scriptFile>src/main/scripts/preinstall-${rpm.release}</scriptFile>
209 </preinstallScriptlet>
210 <postinstallScriptlet>
211 <scriptFile>src/main/scripts/postinstall</scriptFile>
212 </postinstallScriptlet>
213 <preremoveScriptlet>
214 <scriptFile>src/main/scripts/preremove-${rpm.release}</scriptFile>
215 </preremoveScriptlet>
216 <requires>
217 <require>slc-libs</require>
218 <require>osgi-boot</require>
219 <!-- do not require java so that it can be installed on Ubuntu -->
220 <!-- <require>java-1.6.0-openjdk</require> -->
221 </requires>
222 </configuration>
223 </execution>
224 </executions>
225 </plugin>
226 </plugins>
227 </build>
228 </profile>
229 </profiles>
230 </project>