]> git.argeo.org Git - lgpl/argeo-commons.git/blob - pom.xml
7c67df4f7d66f1436d0105ae660735906e34abe9
[lgpl/argeo-commons.git] / 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.commons</groupId>
6 <version>2.1.12-SNAPSHOT</version>
7 <artifactId>dist</artifactId>
8 <relativePath>..</relativePath>
9 </parent>
10 <artifactId>osgi-boot</artifactId>
11 <packaging>pom</packaging>
12 <name>Commons OSGi Boot Distribution</name>
13 <profiles>
14 <profile>
15 <id>rpmbuild</id>
16 <build>
17 <plugins>
18 <plugin>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-dependency-plugin</artifactId>
21 <executions>
22 <execution>
23 <id>copy-dependencies</id>
24 <phase>package</phase>
25 <goals>
26 <goal>copy-dependencies</goal>
27 </goals>
28 <configuration>
29 <includeTypes>jar</includeTypes>
30 <stripVersion>true</stripVersion>
31 <outputDirectory>${project.build.directory}/lib</outputDirectory>
32 <artifactItems>
33 <artifactItem>
34 <groupId>org.argeo.commons</groupId>
35 <artifactId>org.argeo.osgi.boot</artifactId>
36 <version>2.1.12-SNAPSHOT</version>
37 <type>jar</type>
38 </artifactItem>
39 </artifactItems>
40 </configuration>
41 </execution>
42 </executions>
43 </plugin>
44 <plugin>
45 <groupId>org.codehaus.mojo</groupId>
46 <artifactId>rpm-maven-plugin</artifactId>
47 <executions>
48 <execution>
49 <id>rpm-osgi-boot</id>
50 <phase>package</phase>
51 <goals>
52 <goal>rpm</goal>
53 </goals>
54 <configuration>
55 <name>osgi-boot</name>
56 <mappings>
57 <mapping>
58 <directory>/etc/osgiboot</directory>
59 <username>root</username>
60 <groupname>root</groupname>
61 <filemode>644</filemode>
62 <configuration>noreplace</configuration>
63 <directoryIncluded>false</directoryIncluded>
64 <sources>
65 <source>
66 <location>src/main/rpm/etc/osgiboot</location>
67 <includes>
68 <include>*-settings.sh</include>
69 </includes>
70 </source>
71 </sources>
72 </mapping>
73 <mapping>
74 <directory>/etc/osgiboot</directory>
75 <username>root</username>
76 <groupname>root</groupname>
77 <filemode>644</filemode>
78 <directoryIncluded>false</directoryIncluded>
79 <sources>
80 <source>
81 <location>src/main/rpm/etc/osgiboot</location>
82 <includes>
83 <include>*-functions.sh</include>
84 </includes>
85 </source>
86 </sources>
87 </mapping>
88 <mapping>
89 <directory>/usr/sbin</directory>
90 <username>root</username>
91 <groupname>root</groupname>
92 <filemode>755</filemode>
93 <sources>
94 <source>
95 <location>src/main/rpm/usr/sbin</location>
96 </source>
97 </sources>
98 </mapping>
99 <mapping>
100 <directory>/usr/share/osgi/boot</directory>
101 <username>root</username>
102 <groupname>root</groupname>
103 <filemode>644</filemode>
104 <directoryIncluded>false</directoryIncluded>
105 <sources>
106 <source>
107 <location>${project.build.directory}/lib</location>
108 <includes>
109 <include>org.argeo.osgi.boot.jar</include>
110 </includes>
111 </source>
112 </sources>
113 </mapping>
114 </mappings>
115 <requires>
116 <require>osgi-boot-equinox</require>
117 </requires>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 <plugin>
123 <artifactId>maven-antrun-plugin</artifactId>
124 <executions>
125 <execution>
126 <phase>install</phase>
127 <goals>
128 <goal>run</goal>
129 </goals>
130 <configuration>
131 <target>
132 <copy todir="${rpm.stagingRepository}" verbose="true">
133 <fileset dir="${project.build.directory}/rpm"
134 includes="*/RPMS/**/*.rpm" />
135 <flattenmapper />
136 </copy>
137 </target>
138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
142 </plugins>
143 </build>
144 </profile>
145 <profile>
146 <id>rpmbuild-tp</id>
147 <build>
148 <plugins>
149 <plugin>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>rpm-maven-plugin</artifactId>
152 <executions>
153 <execution>
154 <id>rpm-osgi-boot-equinox</id>
155 <phase>package</phase>
156 <goals>
157 <goal>rpm</goal>
158 </goals>
159 <configuration>
160 <name>osgi-boot-equinox</name>
161 <projversion>${version.argeo-distribution}</projversion>
162 <mappings>
163 <mapping>
164 <directory>/usr/share/osgi/boot</directory>
165 <username>root</username>
166 <groupname>root</groupname>
167 <filemode>644</filemode>
168 <directoryIncluded>false</directoryIncluded>
169 <sources>
170 <source>
171 <location>${project.build.directory}/lib</location>
172 <includes>
173 <include>org.eclipse.osgi.jar</include>
174 </includes>
175 </source>
176 </sources>
177 </mapping>
178 </mappings>
179 </configuration>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
185 </profile>
186 </profiles>
187 </project>