/
pom.xml
132 lines (121 loc) · 4.13 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019 Red Hat, Inc.
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at:
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.jkube.quickstarts.maven</groupId>
<artifactId>quarkus</artifactId>
<version>1.16.2</version>
<name>Eclipse JKube :: Quickstarts :: Maven :: Quarkus</name>
<description>
Quarkus application with a single JAX-RS endpoint.
Demonstrates how to package the project using JVM mode or Native image mode.
Demonstrates how to build a Quarkus project container with Eclipse JKube's S2I, Docker and JIB build strategies.
</description>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<jkube.version>${project.version}</jkube.version>
<version.quarkus>3.9.1</version.quarkus>
<jkube.enricher.jkube-service.type>NodePort</jkube.enricher.jkube-service.type>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-bom</artifactId>
<version>${version.quarkus}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
<version>${version.quarkus}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
<version>${version.quarkus}</version>
<exclusions>
<exclusion>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-config</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-jackson</artifactId>
<version>${version.quarkus}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${version.quarkus}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId>
<version>${jkube.version}</version>
</plugin>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>openshift-maven-plugin</artifactId>
<version>${jkube.version}</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>native-docker</id>
<activation>
<property>
<name>native-docker</name>
</property>
</activation>
<properties>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.remote-container-build>true</quarkus.native.remote-container-build>
<quarkus.native.enable-http-url-handler>true</quarkus.native.enable-http-url-handler>
</properties>
</profile>
<profile>
<id>native-jib</id>
<activation>
<property>
<name>native-jib</name>
</property>
</activation>
<properties>
<jkube.build.strategy>jib</jkube.build.strategy>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.remote-container-build>true</quarkus.native.remote-container-build>
<quarkus.native.enable-http-url-handler>true</quarkus.native.enable-http-url-handler>
</properties>
</profile>
</profiles>
</project>