forked from xwiki-attic/application-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
260 lines (258 loc) · 9.91 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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 2.1 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>
<groupId>org.xwiki.contrib</groupId>
<artifactId>parent-platform</artifactId>
<version>6.4-10</version>
</parent>
<artifactId>application-ckeditor-pom</artifactId>
<packaging>pom</packaging>
<name>CKEditor Integration Parent POM</name>
<version>1.54-SNAPSHOT</version>
<description>Adds support for editing wiki pages using CKEditor.</description>
<developers>
<developer>
<id>mflorea</id>
<name>Marius Dumitru Florea</name>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/xwiki-contrib/application-ckeditor.git</connection>
<developerConnection>scm:git:git@github.com:xwiki-contrib/application-ckeditor.git</developerConnection>
<url>https://github.com/xwiki-contrib/application-ckeditor/tree/master</url>
<tag>HEAD</tag>
</scm>
<properties>
<ckeditor.version>4.16.0</ckeditor.version>
<!-- The path to the folder where we clone the CKEditor sources. -->
<ckeditor.path>${project.build.directory}/ckeditor4-${ckeditor.version}</ckeditor.path>
<ckeditor.builder.path>${ckeditor.path}/dev/builder</ckeditor.builder.path>
<ckeditor.plugins.path>${ckeditor.path}/plugins</ckeditor.plugins.path>
<!-- Follow the specifications regarding the WebJar content path.
(this property is defined in platform-core pom; remove this when the CKEditor is integrated in platform)-->
<webjar.contentDirectory>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</webjar.contentDirectory>
<xwiki.issueManagement.jira.id>CKEDITOR</xwiki.issueManagement.jira.id>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>requirejs</artifactId>
<!-- RequireJS is a core extension in the default XWiki distribution and so it's not easy to upgrade it.
Don't increase the version unless we also increase the required XWiki platform version. -->
<version>2.1.15</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<!-- jQuery is a core extension in the default XWiki distribution and so it's not easy to upgrade it.
Don't increase the version unless we also increase the required XWiki platform version. -->
<version>1.11.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.4.1</version>
<executions>
<!-- Download the CKEditor sources for the version (tag) we want to use. -->
<execution>
<id>download-ckeditor-sources</id>
<!-- Make sure this execution is not used by default (you need to call it explicitly in your pom). -->
<phase>none</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/ckeditor/ckeditor4/archive/${ckeditor.version}.zip</url>
<unpack>true</unpack>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<!-- Copy the build configuration to the CKEditor sources. -->
<execution>
<id>copy-ckeditor-build-config</id>
<!-- Make sure this execution is not used by default (you need to call it explicitly in your pom). -->
<phase>none</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${ckeditor.builder.path}</outputDirectory>
<resources>
<resource>
<directory>src/main/config</directory>
</resource>
</resources>
</configuration>
</execution>
<!-- Copy the output of the CKEditor builder to the expected WebJar location. -->
<execution>
<id>copy-ckeditor-resources</id>
<!-- Make sure this execution is not used by default (you need to call it explicitly in your pom). -->
<phase>none</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${webjar.contentDirectory}</outputDirectory>
<resources>
<resource>
<directory>${ckeditor.builder.path}/release/ckeditor</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
<configuration>
<overwrite>true</overwrite>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<!-- Remove the Byte Order Mark from the start of build.sh -->
<execution>
<id>remove-bom</id>
<!-- Use a phase after compile because the Clirr Maven Plugin executes all the phases up to compile
twice. -->
<phase>process-classes</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>sed</executable>
</configuration>
</execution>
<!-- Build the CKEditor. -->
<execution>
<id>build-ckeditor</id>
<!-- Use a phase after compile because the Clirr Maven Plugin executes all the phases up to compile
twice. -->
<phase>process-classes</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${ckeditor.builder.path}/build.sh</executable>
<arguments>
<!-- Exclude from release all plugins/skins that are not specified in build-config. -->
<argument>--skip-omitted-in-build-config</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>application-ckeditor-base</module>
<module>application-ckeditor-plugins</module>
<module>application-ckeditor-ui</module>
<module>application-ckeditor-webjar</module>
</modules>
<profiles>
<profile>
<id>unix</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>remove-bom</id>
<configuration>
<arguments>
<argument>-i</argument>
<argument>1s/^\xEF\xBB\xBF//</argument>
<argument>${ckeditor.builder.path}/build.sh</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>remove-bom</id>
<configuration>
<arguments>
<argument>-i</argument>
<argument>''</argument>
<argument>-e</argument>
<argument>1s/^\xEF\xBB\xBF//</argument>
<argument>${ckeditor.builder.path}/build.sh</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>integration-tests</id>
<modules>
<module>application-ckeditor-test</module>
</modules>
</profile>
</profiles>
</project>