]> git.argeo.org Git - lgpl/argeo-commons.git/blob - osgi/dist/osgi-boot/pom.xml
Improve Security
[lgpl/argeo-commons.git] / osgi / dist / osgi-boot / 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.osgi</groupId>
6 <version>0.3.4-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 <build>
14 <plugins>
15 <plugin>
16 <groupId>org.apache.maven.plugins</groupId>
17 <artifactId>maven-dependency-plugin</artifactId>
18 <executions>
19 <execution>
20 <id>copy-dependencies</id>
21 <phase>package</phase>
22 <goals>
23 <goal>copy-dependencies</goal>
24 </goals>
25 <configuration>
26 <includeTypes>jar</includeTypes>
27 <stripVersion>true</stripVersion>
28 <outputDirectory>${project.build.directory}/lib</outputDirectory>
29 </configuration>
30 </execution>
31 </executions>
32 </plugin>
33 </plugins>
34 </build>
35 <dependencies>
36 <dependency>
37 <groupId>org.argeo.commons.osgi</groupId>
38 <artifactId>org.argeo.osgi.boot</artifactId>
39 <version>0.3.4-SNAPSHOT</version>
40 </dependency>
41 </dependencies>
42 <profiles>
43 <profile>
44 <id>rpmbuild</id>
45 <build>
46 <plugins>
47 <plugin>
48 <groupId>org.codehaus.mojo</groupId>
49 <artifactId>rpm-maven-plugin</artifactId>
50 <version>2.1-alpha-1</version>
51 <extensions>true</extensions>
52 <configuration>
53 <version>${project.version}</version>
54 <release>r${buildNumber}.argeo</release>
55 <copyright>2011 Argeo</copyright>
56 <distribution>argeo</distribution>
57 <packager>mbaudier@argeo.org</packager>
58 <group>Applications/System</group>
59 <prefix>/usr</prefix>
60 </configuration>
61 <executions>
62 <execution>
63 <id>rpm-sdk</id>
64 <phase>package</phase>
65 <goals>
66 <goal>attached-rpm</goal>
67 </goals>
68 <configuration>
69 <mappings>
70 <mapping>
71 <directory>/etc/osgiboot</directory>
72 <username>root</username>
73 <groupname>root</groupname>
74 <filemode>644</filemode>
75 <configuration>true</configuration>
76 <sources>
77 <source>
78 <location>src/main/rpm/etc/osgiboot</location>
79 <includes>
80 <include>*</include>
81 </includes>
82 </source>
83 </sources>
84 </mapping>
85 <mapping>
86 <directory>/usr/sbin</directory>
87 <username>root</username>
88 <groupname>root</groupname>
89 <filemode>755</filemode>
90 <sources>
91 <source>
92 <location>src/main/rpm/usr/sbin</location>
93 <includes>
94 <include>*</include>
95 </includes>
96 </source>
97 </sources>
98 </mapping>
99 <mapping>
100 <directory>/usr/share/osgiboot/lib</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>*.jar</include>
110 </includes>
111 </source>
112 </sources>
113 </mapping>
114 </mappings>
115 <!-- <postinstallScriptlet> <scriptFile>src/main/scripts/postinstall</scriptFile>
116 </postinstallScriptlet> <preremoveScriptlet> <scriptFile>src/main/scripts/preremove</scriptFile>
117 </preremoveScriptlet> <postremoveScriptlet> <scriptFile>src/main/scripts/postremove</scriptFile>
118 </postremoveScriptlet> -->
119 <requires>
120 <require>java</require>
121 <!-- For the start/stop scripts <require>telnet</require> <require>expect</require> -->
122 </requires>
123 </configuration>
124 </execution>
125 </executions>
126 </plugin>
127 </plugins>
128 </build>
129 </profile>
130 </profiles>
131 </project>