RPM packaging
[gpl/argeo-suite.git] / dep / org.argeo.suite.platform / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <parent>
6 <groupId>org.argeo.suite</groupId>
7 <artifactId>dep</artifactId>
8 <version>0.1.13-SNAPSHOT</version>
9 <relativePath>..</relativePath>
10 </parent>
11 <artifactId>org.argeo.suite.platform</artifactId>
12 <name>Argeo Suite Platform</name>
13 <packaging>jar</packaging>
14 <dependencies>
15 <!-- Default Assembly for supported minimal set of Argeo Suite Features -->
16 <dependency>
17 <groupId>org.argeo.suite</groupId>
18 <artifactId>org.argeo.suite.apps</artifactId>
19 <version>0.1.13-SNAPSHOT</version>
20 </dependency>
21 <dependency>
22 <groupId>org.argeo.suite</groupId>
23 <artifactId>org.argeo.suite.workbench.rap</artifactId>
24 <version>0.1.13-SNAPSHOT</version>
25 </dependency>
26 <dependency>
27 <groupId>org.argeo.suite</groupId>
28 <artifactId>org.argeo.suite.web</artifactId>
29 <version>0.1.13-SNAPSHOT</version>
30 </dependency>
31
32 <!-- Base CMS distribution -->
33 <dependency>
34 <groupId>org.argeo.connect</groupId>
35 <artifactId>org.argeo.connect.platform</artifactId>
36 <version>${version.argeo-connect}</version>
37 <type>pom</type>
38 </dependency>
39
40 <!-- Argeo TP Extras -->
41 <dependency>
42 <groupId>org.argeo.tp.payment</groupId>
43 <artifactId>com.stripe</artifactId>
44 </dependency>
45
46 </dependencies>
47 <profiles>
48 <profile>
49 <id>rpmbuild</id>
50 <build>
51 <plugins>
52 <plugin>
53 <artifactId>maven-assembly-plugin</artifactId>
54 <executions>
55 <execution>
56 <id>prepare-source</id>
57 <phase>package</phase>
58 <goals>
59 <goal>single</goal>
60 </goals>
61 <configuration>
62 <descriptorRefs>
63 <descriptorRef>a2-source</descriptorRef>
64 </descriptorRefs>
65 </configuration>
66 </execution>
67 </executions>
68 </plugin>
69 <!-- <plugin> -->
70 <!-- <groupId>org.apache.maven.plugins</groupId> -->
71 <!-- <artifactId>maven-dependency-plugin</artifactId> -->
72 <!-- <executions> -->
73 <!-- <execution> -->
74 <!-- <id>copy-argeo</id> -->
75 <!-- <phase>package</phase> -->
76 <!-- <goals> -->
77 <!-- <goal>copy-dependencies</goal> -->
78 <!-- </goals> -->
79 <!-- <configuration> -->
80 <!-- <includeTypes>jar</includeTypes> -->
81 <!-- <outputDirectory>${project.build.directory}/lib-argeo</outputDirectory> -->
82 <!-- <includeGroupIds>org.argeo.suite</includeGroupIds> -->
83 <!-- <includeTypes>jar</includeTypes> -->
84 <!-- <includeScope>runtime</includeScope> -->
85 <!-- <useRepositoryLayout>true</useRepositoryLayout> -->
86 <!-- </configuration> -->
87 <!-- </execution> -->
88 <!-- </executions> -->
89 <!-- </plugin> -->
90 <plugin>
91 <groupId>org.codehaus.mojo</groupId>
92 <artifactId>rpm-maven-plugin</artifactId>
93 <executions>
94 <execution>
95 <id>rpm-argeo</id>
96 <phase>package</phase>
97 <goals>
98 <goal>rpm</goal>
99 </goals>
100 <configuration>
101 <name>argeo-suite</name>
102 <mappings>
103 <mapping>
104 <directory>/usr/share/osgi</directory>
105 <username>root</username>
106 <groupname>root</groupname>
107 <filemode>644</filemode>
108 <directoryIncluded>true</directoryIncluded>
109 <sources>
110 <source>
111 <location>${project.build.directory}/${project.artifactId}-${project.version}-a2-source</location>
112 <includes>
113 <include>**/*.jar</include>
114 </includes>
115 </source>
116 </sources>
117 </mapping>
118 </mappings>
119 <requires>
120 <require>argeo-connect</require>
121 </requires>
122 </configuration>
123 </execution>
124 </executions>
125 </plugin>
126 </plugins>
127 </build>
128 </profile>
129 </profiles>
130 </project>