-
Notifications
You must be signed in to change notification settings - Fork 1
/
pom.xml
303 lines (277 loc) · 10.8 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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.composum.meta.ist</groupId>
<artifactId>parent-2-public</artifactId>
<version>1.7.1</version>
<relativePath />
</parent>
<groupId>com.composum.platform</groupId>
<artifactId>composum-launcher</artifactId>
<version>1.5.2.2</version>
<packaging>pom</packaging>
<name>Composum Launchers</name>
<description>Maven parent for Composum Platform launcher (various docker images).</description>
<!--
We release project and platform in synchronized versions. The project version is adapted with
the maven release plugin to the right version - so we have everything in sync. E.g.:
mvn -P obsolete,compat -B release:update-versions -DdevelopmentVersion=1.1.1-SNAPSHOT
-->
<!--
Set properties to latest releases with
mvn -DallowDowngrade=true -DgenerateBackupPoms=false -DprocessParent=true versions:update-properties versions:update-parent
If you want the latest snapshots:
mvn -DallowSnapshots=true -DgenerateBackupPoms=false -DprocessParent=true versions:update-properties versions:update-parent
-->
<properties>
<docker.image.tag>${project.version}</docker.image.tag>
<!-- nodes e.g. 3.4.1 or 4.1.1 - we rather use nodes 4, since otherwise the FAR could either
not be easily installed on plain Sling Starter 12, or we would have to install nodes as a package - but
then upgrade would be a problem until https://issues.apache.org/jira/browse/SLING-11221 is fixed. -->
<composum.nodes.version>4.2.2-SNAPSHOT</composum.nodes.version>
<composum.platform.version>1.7.0</composum.platform.version>
<composum.pages.version>1.5.1</composum.pages.version>
<composum.pages.options.version>${composum.pages.version}</composum.pages.options.version>
<composum.assets.version>1.4.0</composum.assets.version>
<composum.sites.version>1.0.0-SNAPSHOT</composum.sites.version>
<cpm.platform.htl.version>1.1.1</cpm.platform.htl.version>
<composum.ai.version>0.6.0</composum.ai.version>
<!-- https://mvnrepository.com/artifact/com.composum.dashboard/composum-dashboard-sling -->
<composum.dashboard.version>1.2.13</composum.dashboard.version>
<!-- Version numbers of some proprietary packages, not for general use. -->
<cpm.platform.replication.version>1.1.2-SNAPSHOT</cpm.platform.replication.version>
<cpm.platform.workflow.version>1.1.2-SNAPSHOT</cpm.platform.workflow.version>
<cpm.platform.tenant.version>1.1.2-SNAPSHOT</cpm.platform.tenant.version>
<!-- no deployment except if specified otherwise -->
<maven.deploy.skip>true</maven.deploy.skip>
<sling.starter.version>12</sling.starter.version>
<!-- or our copy: -->
<!-- <sling.starter.version>12.1-SNAPSHOT</sling.starter.version>-->
<!-- Does have to be the same version as in the launcher. https://mvnrepository.com/artifact/org.apache.jackrabbit/oak-upgrade -->
<launcher.oak.version>1.42.0</launcher.oak.version>
<!-- For the feature starter. -->
<!-- https://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.framework -->
<org.apache.felix.framework.version>7.0.5</org.apache.felix.framework.version>
<!-- https://mvnrepository.com/artifact/org.apache.sling/org.apache.sling.feature.launcher -->
<!-- Due to https://issues.apache.org/jira/browse/SLING-11158 1.1.28 and 1.2.0 do not work.
1.3.0 gives a java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException , update deferred. -->
<org.apache.sling.feature.launcher.version>1.1.26</org.apache.sling.feature.launcher.version>
<!-- https://mvnrepository.com/artifact/org.apache.sling/org.apache.sling.jcr.packageinit -->
<org.apache.sling.jcr.packageinit.version>1.0.4</org.apache.sling.jcr.packageinit.version>
</properties>
<dependencyManagement>
<!-- Declares the versions of additional packages that can be deployed -->
<dependencies>
<dependency>
<groupId>com.composum.platform</groupId>
<artifactId>cpm-platform-htl-package</artifactId>
<version>${cpm.platform.htl.version}</version>
</dependency>
<!-- For the feature starter: the used framework. -->
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>${org.apache.felix.framework.version}</version>
</dependency>
<!-- These dependencies are mostly declared here to allow automatical update of the properties with mvn release:update-versions
mvn -DallowDowngrade=true -DgenerateBackupPoms=false -DprocessParent=true versions:update-properties versions:update-parent
or
mvn -DallowSnapshots=true -DgenerateBackupPoms=false -DprocessParent=true versions:update-properties versions:update-parent
-->
<dependency>
<groupId>com.composum.nodes</groupId>
<artifactId>composum-nodes-commons</artifactId>
<version>${composum.nodes.version}</version>
</dependency>
<dependency>
<groupId>com.composum.platform</groupId>
<artifactId>composum-platform-commons-package</artifactId>
<version>${composum.platform.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.composum.pages</groupId>
<artifactId>composum-pages-components-package</artifactId>
<version>${composum.pages.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.composum.pages.options</groupId>
<artifactId>composum-pages-options-assets-package</artifactId>
<version>${composum.pages.options.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.composum.assets</groupId>
<artifactId>composum-assets-commons-package</artifactId>
<version>${composum.assets.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.composum.ai</groupId>
<artifactId>composum-ai-integration-composum-package</artifactId>
<version>${composum.ai.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.composum.dashboard</groupId>
<artifactId>composum-dashboard-sling</artifactId>
<version>${composum.dashboard.version}</version>
<type>zip</type>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- FIXME move to parent in composum-meta -->
<!-- https://mvnrepository.com/artifact/io.fabric8/docker-maven-plugin -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.43.0</version>
<extensions>true</extensions>
<configuration>
<verbose>all</verbose>
<stopMode>kill</stopMode>
<allContainers>true</allContainers>
<!-- ensures a container left running after an aborted build is noticed because it's in conflict. -->
<containerNamePattern>%n</containerNamePattern>
<images>
<image>
<build>
<buildx>
<platforms>
<platform>${docker.platforms}</platform>
</platforms>
</buildx>
</build>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<checkModificationExcludes>
<checkModificationExclude>**/.env</checkModificationExclude>
</checkModificationExcludes>
</configuration>
</plugin>
<plugin>
<!-- The composum-site is basically a perpetual snapshot - let's ignore this. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-no-snapshots-in-releases</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireReleaseDeps>
<excludes>
<exclude>sites.ist.composum:*</exclude>
</excludes>
</requireReleaseDeps>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<modules>
<module>feature</module>
<!-- docker is built with the profile docker, which is active by default, but we only include it into
a profile to be able to exclude it easily when creating a release, as it's less failure prone to separate that.
<module>docker</module> -->
<!-- Deliberately not included, as there is nothing to build or release there - just for running things.
<module>startup/featurelauncher</module> -->
</modules>
<scm>
<tag>composum-launcher-1.5.2.2</tag>
</scm>
<repositories>
<repository>
<!-- To be able to reference sling starter snapshots, since there is no public 12 release yet. -->
<id>apache.snapshots</id>
<name>Apache Development Snapshot Repository</name>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<!-- Needed for downloading the example site www-composum-com -->
<id>github-www-composum-com</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>github-www-composum-com</id>
<url>https://maven.pkg.github.com/ist-dresden/www-composum-com</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
<profile>
<id>docker</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>docker</module>
</modules>
</profile>
<profile>
<!-- Covers all modules, primarily for setting versions etc., since some modules are not released or even built. -->
<id>allmodules</id>
<modules>
<module>docker</module>
<module>startup/featurelauncher</module>
</modules>
</profile>
<profile>
<id>skipDocker</id>
<properties>
<docker.skip>true</docker.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>
-Ddocker.skip=true -P skipDocker,!docker -DdeployAtEnd=true
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Build docker modules for all platforms -->
<id>allplatforms</id>
<properties>
<docker.platforms>linux/amd64,linux/arm64</docker.platforms>
</properties>
</profile>
</profiles>
</project>