]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/slc/pom.xml
Revert change breaking path retro-compatibility.
[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"
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>1.1.12-SNAPSHOT</version>
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>1.1.12-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>1.1.12-SNAPSHOT</version>
71 </dependency>
72 <dependency>
73 <groupId>org.argeo.slc</groupId>
74 <artifactId>org.argeo.slc.lib.repo</artifactId>
75 <version>1.1.12-SNAPSHOT</version>
76 </dependency>
77
78 <!-- Launcher -->
79 <dependency>
80 <groupId>org.argeo.slc</groupId>
81 <artifactId>org.argeo.slc.launcher</artifactId>
82 <version>1.1.12-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>src/main/rpm/usr/bin</location>
139 </source>
140 </sources>
141 </mapping>
142 <mapping>
143 <directory>/etc/init.d</directory>
144 <username>root</username>
145 <groupname>root</groupname>
146 <filemode>755</filemode>
147 <directoryIncluded>false</directoryIncluded>
148 <sources>
149 <source>
150 <location>src/main/rpm/etc/init.d</location>
151 </source>
152 </sources>
153 </mapping>
154 <mapping>
155 <directory>/etc/slc</directory>
156 <username>root</username>
157 <groupname>slc</groupname>
158 <filemode>640</filemode>
159 <configuration>noreplace</configuration>
160 <directoryIncluded>false</directoryIncluded>
161 <sources>
162 <source>
163 <location>src/main/rpm/etc/slc</location>
164 </source>
165 </sources>
166 </mapping>
167 <mapping>
168 <directory>/etc/slc-cl</directory>
169 <username>root</username>
170 <groupname>root</groupname>
171 <filemode>644</filemode>
172 <directoryIncluded>false</directoryIncluded>
173 <sources>
174 <source>
175 <location>src/main/rpm/etc/slc-cl</location>
176 </source>
177 </sources>
178 </mapping>
179 <mapping>
180 <directory>/usr/share/osgi/boot</directory>
181 <username>root</username>
182 <groupname>root</groupname>
183 <filemode>644</filemode>
184 <directoryIncluded>false</directoryIncluded>
185 <sources>
186 <source>
187 <location>${project.build.directory}/boot</location>
188 <includes>
189 <include>org.argeo.slc.launcher.jar</include>
190 </includes>
191 </source>
192 </sources>
193 </mapping>
194 <!-- Maven (even if not installed) -->
195 <mapping>
196 <directory>/var/lib/slc/.m2</directory>
197 <username>slc</username>
198 <groupname>slc</groupname>
199 <filemode>600</filemode>
200 <directoryIncluded>false</directoryIncluded>
201 <sources>
202 <source>
203 <location>src/main/rpm/var/lib/slc/.m2</location>
204 </source>
205 </sources>
206 </mapping>
207 </mappings>
208 <preinstallScriptlet>
209 <scriptFile>src/main/scripts/preinstall-${rpm.release}</scriptFile>
210 </preinstallScriptlet>
211 <postinstallScriptlet>
212 <scriptFile>src/main/scripts/postinstall</scriptFile>
213 </postinstallScriptlet>
214 <preremoveScriptlet>
215 <scriptFile>src/main/scripts/preremove-${rpm.release}</scriptFile>
216 </preremoveScriptlet>
217 <requires>
218 <require>slc-libs</require>
219 <require>osgi-boot</require>
220 <!-- do not require java so that it can be installed on Ubuntu -->
221 <!-- <require>java-1.6.0-openjdk</require> -->
222 </requires>
223 </configuration>
224 </execution>
225 </executions>
226 </plugin>
227 </plugins>
228 </build>
229 </profile>
230 </profiles>
231 </project>