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>
5 <groupId>org.argeo.slc
</groupId>
6 <artifactId>dist
</artifactId>
7 <version>1.1.12-SNAPSHOT
</version>
9 <artifactId>slc
</artifactId>
10 <packaging>pom
</packaging>
11 <name>SLC Distribution
</name>
18 <!-- <groupId>org.apache.maven.plugins</groupId> -->
19 <!-- <artifactId>maven-dependency-plugin</artifactId> -->
22 <!-- <id>copy-dependencies-dist</id> -->
23 <!-- <phase>package</phase> -->
25 <!-- <goal>copy-dependencies</goal> -->
27 <!-- <configuration> -->
28 <!-- <includeTypes>jar</includeTypes> -->
29 <!-- <useRepositoryLayout>true</useRepositoryLayout> -->
30 <!-- <outputDirectory>${project.build.directory}/modulest</outputDirectory> -->
31 <!-- </configuration> -->
33 <!-- </executions> -->
36 <groupId>org.apache.maven.plugins
</groupId>
37 <artifactId>maven-assembly-plugin
</artifactId>
39 <finalName>argeo-slc-${project.version}
</finalName>
40 <appendAssemblyId>false
</appendAssemblyId>
42 <descriptor>src/assembly/dist.xml
</descriptor>
47 <id>assembly-base
</id>
48 <phase>package
</phase>
60 <groupId>org.argeo.slc
</groupId>
61 <artifactId>org.argeo.slc.dep.backend
</artifactId>
62 <version>1.1.12-SNAPSHOT
</version>
68 <groupId>org.argeo.slc
</groupId>
69 <artifactId>org.argeo.slc.lib.jcr
</artifactId>
70 <version>1.1.12-SNAPSHOT
</version>
73 <groupId>org.argeo.slc
</groupId>
74 <artifactId>org.argeo.slc.lib.repo
</artifactId>
75 <version>1.1.12-SNAPSHOT
</version>
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> -->
93 <groupId>org.apache.maven.plugins
</groupId>
94 <artifactId>maven-dependency-plugin
</artifactId>
97 <id>copy-dependencies-rpm
</id>
98 <phase>package
</phase>
103 <includeTypes>jar
</includeTypes>
104 <stripVersion>true
</stripVersion>
105 <outputDirectory>${project.build.directory}/boot
</outputDirectory>
108 <groupId>org.argeo.slc
</groupId>
109 <artifactId>org.argeo.slc.launcher
</artifactId>
110 <version>${project.version}
</version>
118 <groupId>org.codehaus.mojo
</groupId>
119 <artifactId>rpm-maven-plugin
</artifactId>
123 <phase>package
</phase>
131 <directory>/usr/bin
</directory>
132 <username>root
</username>
133 <groupname>root
</groupname>
134 <filemode>755</filemode>
135 <directoryIncluded>false
</directoryIncluded>
138 <location>src/main/rpm/usr/bin
</location>
143 <directory>/etc/init.d
</directory>
144 <username>root
</username>
145 <groupname>root
</groupname>
146 <filemode>755</filemode>
147 <directoryIncluded>false
</directoryIncluded>
150 <location>src/main/rpm/etc/init.d
</location>
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>
163 <location>src/main/rpm/etc/slc
</location>
168 <directory>/etc/slc-cl
</directory>
169 <username>root
</username>
170 <groupname>root
</groupname>
171 <filemode>644</filemode>
172 <directoryIncluded>false
</directoryIncluded>
175 <location>src/main/rpm/etc/slc-cl
</location>
180 <directory>/usr/share/osgi/boot
</directory>
181 <username>root
</username>
182 <groupname>root
</groupname>
183 <filemode>644</filemode>
184 <directoryIncluded>false
</directoryIncluded>
187 <location>${project.build.directory}/boot
</location>
189 <include>org.argeo.slc.launcher.jar
</include>
194 <!-- Maven (even if not installed) -->
196 <directory>/var/lib/slc/.m2
</directory>
197 <username>slc
</username>
198 <groupname>slc
</groupname>
199 <filemode>600</filemode>
200 <directoryIncluded>false
</directoryIncluded>
203 <location>src/main/rpm/var/lib/slc/.m2
</location>
208 <preinstallScriptlet>
209 <scriptFile>src/main/scripts/preinstall-${rpm.release}
</scriptFile>
210 </preinstallScriptlet>
211 <postinstallScriptlet>
212 <scriptFile>src/main/scripts/postinstall
</scriptFile>
213 </postinstallScriptlet>
215 <scriptFile>src/main/scripts/preremove-${rpm.release}
</scriptFile>
216 </preremoveScriptlet>
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> -->