Keycloak

Форк
0
/
pom.xml 
308 строк · 11.7 Кб
1
<?xml version="1.0"?>
2
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3
         xmlns="http://maven.apache.org/POM/4.0.0"
4
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5
    <modelVersion>4.0.0</modelVersion>
6

7
    <parent>
8
        <artifactId>keycloak-parent</artifactId>
9
        <groupId>org.keycloak</groupId>
10
        <version>999.0.0-SNAPSHOT</version>
11
        <relativePath>../pom.xml</relativePath>
12
    </parent>
13
    
14
    <name>Keycloak Operator</name>
15
    <artifactId>keycloak-operator</artifactId>
16

17
    <properties>
18
        <compiler-plugin.version>3.8.1</compiler-plugin.version>
19
        <maven.compiler.parameters>true</maven.compiler.parameters>
20
        <maven.compiler.release>11</maven.compiler.release>
21
        <maven.compiler.source>11</maven.compiler.source>
22
        <maven.compiler.target>11</maven.compiler.target>
23
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
25
        <quarkus.container-image.group>keycloak</quarkus.container-image.group>
26
    </properties>
27

28
    <dependencyManagement>
29
        <dependencies>
30
            <dependency>
31
                <groupId>io.quarkus.platform</groupId>
32
                <artifactId>quarkus-operator-sdk-bom</artifactId>
33
                <version>${quarkus.version}</version>
34
                <type>pom</type>
35
                <scope>import</scope>
36
            </dependency>
37
        </dependencies>
38
    </dependencyManagement>
39

40

41
    <dependencies>
42
        <!-- Fabric8 -->
43
        <dependency>
44
            <groupId>io.fabric8</groupId>
45
            <artifactId>crd-generator-apt</artifactId>
46
            <scope>provided</scope>
47
        </dependency>
48
        <dependency>
49
            <groupId>io.fabric8</groupId>
50
            <artifactId>kubernetes-junit-jupiter</artifactId>
51
            <scope>test</scope>
52
        </dependency>
53

54
        <!-- Quarkus -->
55
        <dependency>
56
            <groupId>io.quarkiverse.operatorsdk</groupId>
57
            <artifactId>quarkus-operator-sdk</artifactId>
58
            <exclusions>
59
            	<exclusion>
60
            		<groupId>io.vertx</groupId>
61
            		<artifactId>vertx-uri-template</artifactId>
62
            	</exclusion>
63
            </exclusions>
64
        </dependency>
65
        <dependency>
66
            <groupId>io.quarkiverse.operatorsdk</groupId>
67
            <artifactId>quarkus-operator-sdk-bundle-generator</artifactId>
68
            <optional>true</optional>
69
        </dependency>
70
        <dependency>
71
            <groupId>io.quarkus</groupId>
72
            <artifactId>quarkus-kubernetes-client</artifactId>
73
            <exclusions>
74
            	<exclusion>
75
            		<groupId>io.vertx</groupId>
76
            		<artifactId>vertx-uri-template</artifactId>
77
            	</exclusion>
78
                <exclusion>
79
                    <groupId>com.aayushatharva.brotli4j</groupId>
80
                    <artifactId>*</artifactId>
81
                </exclusion>
82
                <exclusion>
83
                    <groupId>org.apache.commons</groupId>
84
                    <artifactId>commons-compress</artifactId>
85
                </exclusion>
86
            </exclusions>
87
        </dependency>
88
        <dependency>
89
          <groupId>io.quarkus</groupId>
90
          <artifactId>quarkus-container-image-docker</artifactId>
91
          <optional>true</optional>
92
        </dependency>
93

94
        <!-- Keycloak -->
95
        <dependency>
96
            <groupId>org.keycloak</groupId>
97
            <artifactId>keycloak-core</artifactId>
98
        </dependency>
99

100
        <!-- FIXME: Adding BC for now as removing the Bouncycastle dependencies from the operator makes it unusable on K3s and possibly on other kubernetes distributions (e.g. Rancher is based on K3s). -->
101
        <dependency>
102
            <groupId>org.bouncycastle</groupId>
103
            <artifactId>bcprov-jdk18on</artifactId>
104
        </dependency>
105
        <dependency>
106
            <groupId>org.bouncycastle</groupId>
107
            <artifactId>bcpkix-jdk18on</artifactId>
108
        </dependency>
109

110
        <!-- Test -->
111
        <dependency>
112
            <groupId>io.quarkus</groupId>
113
            <artifactId>quarkus-test-common</artifactId>
114
            <scope>test</scope>
115
        </dependency>
116
        <dependency>
117
            <groupId>io.quarkus</groupId>
118
            <artifactId>quarkus-junit5</artifactId>
119
            <scope>test</scope>
120
        </dependency>
121
        <dependency>
122
            <groupId>io.quarkus</groupId>
123
            <artifactId>quarkus-junit5-mockito</artifactId>
124
            <scope>test</scope>
125
        </dependency>
126
        <dependency>
127
            <groupId>org.assertj</groupId>
128
            <artifactId>assertj-core</artifactId>
129
            <version>${assertj-core.version}</version>
130
            <scope>test</scope>
131
        </dependency>
132
        <dependency>
133
            <groupId>org.awaitility</groupId>
134
            <artifactId>awaitility</artifactId>
135
            <scope>test</scope>
136
        </dependency>
137
        <dependency>
138
            <groupId>io.rest-assured</groupId>
139
            <artifactId>rest-assured</artifactId>
140
            <scope>test</scope>
141
        </dependency>
142
        <dependency>
143
            <groupId>org.mockito</groupId>
144
            <artifactId>mockito-core</artifactId>
145
            <scope>test</scope>
146
        </dependency>
147
    </dependencies>
148

149
    <build>
150
        <pluginManagement>
151
            <plugins>
152
            <plugin>
153
                <groupId>io.quarkus</groupId>
154
                <artifactId>quarkus-maven-plugin</artifactId>
155
                <version>${quarkus.build.version}</version>
156
            </plugin>
157
            <plugin>
158
                <artifactId>maven-compiler-plugin</artifactId>
159
                <version>${compiler-plugin.version}</version>
160
            </plugin>
161
            </plugins>
162
        </pluginManagement>
163
        <plugins>
164
            <plugin>
165
                <groupId>io.quarkus</groupId>
166
                <artifactId>quarkus-maven-plugin</artifactId>
167
                <version>${quarkus.build.version}</version>
168
                <executions>
169
                    <execution>
170
                    <goals>
171
                        <goal>build</goal>
172
                    </goals>
173
                    <configuration>
174
                        <properties>
175
                            <quarkus.package.filter-optional-dependencies>true</quarkus.package.filter-optional-dependencies> 
176
                        </properties>
177
                    </configuration>
178
                    </execution>
179
                </executions>
180
            </plugin>
181
            <plugin>
182
                <artifactId>maven-resources-plugin</artifactId>
183
                <executions>
184
                    <execution>
185
                        <id>copy-resources</id>
186
                        <phase>validate</phase>
187
                        <goals>
188
                            <goal>copy-resources</goal>
189
                        </goals>
190
                        <configuration>
191
                            <outputDirectory>${basedir}/target</outputDirectory>
192
                            <resources>
193
                            <resource>
194
                                <directory>src/main/kubernetes</directory>
195
                                <filtering>true</filtering>
196
                            </resource>
197
                            </resources>
198
                        </configuration>
199
                    </execution>
200
                    <execution>
201
                        <id>copy-ubi-null</id>
202
                        <phase>validate</phase>
203
                        <goals>
204
                            <goal>copy-resources</goal>
205
                        </goals>
206
                        <configuration>
207
                            <outputDirectory>${project.build.directory}</outputDirectory>
208
                            <resources>
209
                                <resource>
210
                                    <directory>${basedir}/../quarkus/container/</directory>
211
                                    <includes>
212
                                        <include>**/ubi-null.sh</include>
213
                                    </includes>
214
                                </resource>
215
                            </resources>
216
                        </configuration>
217
                    </execution>
218
                </executions>
219
            </plugin>
220

221
            <plugin>
222
                <groupId>org.codehaus.mojo</groupId>
223
                <artifactId>build-helper-maven-plugin</artifactId>
224
                <executions>
225
                    <execution>
226
                        <phase>generate-sources</phase>
227
                        <goals>
228
                            <goal>add-source</goal>
229
                        </goals>
230
                        <configuration>
231
                            <sources>
232
                                <source>${basedir}/target/generated-sources/java</source>
233
                            </sources>
234
                        </configuration>
235
                    </execution>
236
                </executions>
237
            </plugin>
238

239
            <plugin>
240
                <artifactId>maven-surefire-plugin</artifactId>
241
                <executions>
242
                <!--
243
                    need to run at "verify" to support testing with images (which are built at "package")
244
                    using surefire instead of failsafe to align with rest of the KC project
245
                -->
246
                    <execution>
247
                        <id>default-test</id>
248
                        <phase>verify</phase>
249
                        <goals>
250
                            <goal>test</goal>
251
                        </goals>
252
                    </execution>
253
                </executions>
254
                <configuration>
255
                    <systemPropertyVariables>
256
                        <!-- Used in KeycloakDeploymentTest#testPreconfiguredPodLabels -->
257
                        <OPERATOR_TEST_LABEL_EXPRESSION>my-value</OPERATOR_TEST_LABEL_EXPRESSION>
258
                    </systemPropertyVariables>
259
                </configuration>
260
            </plugin>
261

262
            <plugin>
263
                <groupId>org.apache.maven.plugins</groupId>
264
                <artifactId>maven-assembly-plugin</artifactId>
265
                <executions>
266
                    <execution>
267
                        <id>assemble-quarkus</id>
268
                        <phase>package</phase>
269
                        <goals>
270
                            <goal>single</goal>
271
                        </goals>
272
                        <configuration>
273
                            <descriptors>
274
                                <descriptor>assembly.xml</descriptor>
275
                            </descriptors>
276
                            <appendAssemblyId>false</appendAssemblyId>
277
                            <workDirectory>${project.build.directory}/assembly/work</workDirectory>
278
                        </configuration>
279
                    </execution>
280
                    <execution>
281
                        <id>assemble-bundle</id>
282
                        <phase>package</phase>
283
                        <goals>
284
                            <goal>single</goal>
285
                        </goals>
286
                        <configuration>
287
                            <descriptors>
288
                                <descriptor>olm-assembly.xml</descriptor>
289
                            </descriptors>
290
                            <appendAssemblyId>true</appendAssemblyId>
291
                            <workDirectory>${project.build.directory}/bundle-assembly/work</workDirectory>
292
                        </configuration>
293
                    </execution>
294
                </executions>
295
            </plugin>
296
        </plugins>
297
    </build>
298
    
299
    
300
    <profiles>
301
        <profile>
302
            <id>operator-prod</id>
303
            <properties>
304
                <quarkus.profile>rhbk</quarkus.profile>
305
            </properties>
306
        </profile>
307
    </profiles>
308
</project>
309

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.