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