forked from exoplatform/platform-public-distributions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
187 lines (182 loc) · 7.33 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2003-2013 eXo Platform SAS.
This is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this software; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>plf-public-distributions</artifactId>
<groupId>org.exoplatform.platform.distributions</groupId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<artifactId>plf-community-tomcat-standalone</artifactId>
<packaging>pom</packaging>
<name>eXo Platform Public Distributions - Community Tomcat Standalone</name>
<dependencies>
<!-- Get all shared dependencies used by PLF -->
<dependency>
<groupId>org.exoplatform.platform.distributions</groupId>
<artifactId>plf-shared-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<!-- Don't expose transitive deps if someone wants the zip as dep -->
<optional>true</optional>
</dependency>
<!-- Get required additional files for Tomcat package -->
<dependency>
<groupId>org.exoplatform.platform.distributions</groupId>
<artifactId>plf-shared-tomcat-resources</artifactId>
<version>${project.version}</version>
<type>zip</type>
<!-- Don't expose transitive deps if someone wants the zip as dep -->
<optional>true</optional>
</dependency>
<!-- This artifact is needed to configure Platform in community mode -->
<dependency>
<groupId>org.exoplatform.platform</groupId>
<artifactId>platform-component-edition-community</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<!-- The name that we'll use for our distribution directory -->
<finalName>platform-community-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<!-- Create the distribution directory with all content -->
<execution>
<id>plf-standalone-tomcat-distribution-content</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>false</attach>
<descriptorRefs>
<descriptorRef>plf-standalone-default-tomcat-extract-dependencies</descriptorRef>
<descriptorRef>plf-standalone-default-tomcat-distribution-content</descriptorRef>
</descriptorRefs>
<filters>
<!-- Default server.xml is using HSQLDB -->
<filter>${project.build.directory}/${project.build.finalName}/dependencies/plf-shared-tomcat-resources/conf/hsqldb.filters.properties</filter>
</filters>
</configuration>
</execution>
<!-- server.xml file for HSQLDB -->
<execution>
<id>plf-server-xml-hsqldb</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>false</attach>
<descriptorRefs>
<descriptorRef>plf-standalone-tomcat-server-xml-hsqldb</descriptorRef>
</descriptorRefs>
<filters>
<filter>${project.build.directory}/${project.build.finalName}/dependencies/plf-shared-tomcat-resources/conf/hsqldb.filters.properties</filter>
</filters>
</configuration>
</execution>
<!-- server.xml file for MySQL -->
<execution>
<id>plf-server-xml-mysql</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>false</attach>
<descriptorRefs>
<descriptorRef>plf-standalone-tomcat-server-xml-mysql</descriptorRef>
</descriptorRefs>
<filters>
<filter>${project.build.directory}/${project.build.finalName}/dependencies/plf-shared-tomcat-resources/conf/mysql.filters.properties</filter>
</filters>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.exoplatform.platform.distributions</groupId>
<artifactId>plf-shared-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>create-archive</id>
<activation>
<property>
<name>!skip-archive</name>
</property>
</activation>
<build>
<plugins>
<!-- Build License related files bundled directly in the archive -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
</execution>
</executions>
<configuration>
<resourceBundles>
<resourceBundle>org.exoplatform.resources:exo-lgpl-license-resource-bundle:${version.exo-lgpl-license-resource-bundle}</resourceBundle>
</resourceBundles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<!-- Create the distribution zip and attach it to maven -->
<execution>
<id>plf-standalone-tomcat-zip</id>
<phase>prepare-package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>plf-standalone-tomcat-zip</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.exoplatform.platform.distributions</groupId>
<artifactId>plf-shared-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>