Skip to content

Commit e9dd9fe

Browse files
authored
Update pom.xml to fix build errors (GoogleCloudPlatform#2056)
* Update pom.xml * update version
1 parent c8c2799 commit e9dd9fe

File tree

3 files changed

+64
-21
lines changed

3 files changed

+64
-21
lines changed

appengine-java11/quarkus-helloworld/pom.xml

Lines changed: 63 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
See the License for the specific language governing permissions and
1212
limitations under the License.
1313
-->
14-
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
15-
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
14+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
15+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1616
<modelVersion>4.0.0</modelVersion>
1717
<groupId>com.example.appengine.quarkus</groupId>
1818
<artifactId>quarkus-helloworld</artifactId>
@@ -29,8 +29,10 @@
2929
</parent>
3030

3131
<properties>
32+
<surefire-plugin.version>2.22.0</surefire-plugin.version>
3233
<maven.compiler.target>11</maven.compiler.target>
3334
<maven.compiler.source>11</maven.compiler.source>
35+
<quarkus.version>1.2.0.Final</quarkus.version>
3436
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3537
</properties>
3638

@@ -39,7 +41,7 @@
3941
<dependency>
4042
<groupId>io.quarkus</groupId>
4143
<artifactId>quarkus-bom</artifactId>
42-
<version>1.1.1.Final</version>
44+
<version>${quarkus.version}</version>
4345
<type>pom</type>
4446
<scope>import</scope>
4547
</dependency>
@@ -51,13 +53,10 @@
5153
<groupId>io.quarkus</groupId>
5254
<artifactId>quarkus-resteasy</artifactId>
5355
</dependency>
54-
<dependency>
55-
<groupId>io.quarkus</groupId>
56-
<artifactId>quarkus-arc</artifactId>
57-
</dependency>
5856
<dependency>
5957
<groupId>io.quarkus</groupId>
6058
<artifactId>quarkus-junit5</artifactId>
59+
<scope>test</scope>
6160
</dependency>
6261
<dependency>
6362
<groupId>io.rest-assured</groupId>
@@ -71,6 +70,7 @@
7170
<plugin>
7271
<groupId>io.quarkus</groupId>
7372
<artifactId>quarkus-maven-plugin</artifactId>
73+
<version>${quarkus.version}</version>
7474
<executions>
7575
<execution>
7676
<goals>
@@ -79,6 +79,15 @@
7979
</execution>
8080
</executions>
8181
</plugin>
82+
<plugin>
83+
<artifactId>maven-surefire-plugin</artifactId>
84+
<version>${surefire-plugin.version}</version>
85+
<configuration>
86+
<systemProperties>
87+
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
88+
</systemProperties>
89+
</configuration>
90+
</plugin>
8291
<!-- Plugin needed to use `mvn appengine:deploy` command -->
8392
<plugin>
8493
<groupId>com.google.cloud.tools</groupId>
@@ -91,4 +100,51 @@
91100
</plugin>
92101
</plugins>
93102
</build>
103+
104+
<profiles>
105+
<profile>
106+
<id>native</id>
107+
<activation>
108+
<property>
109+
<name>native</name>
110+
</property>
111+
</activation>
112+
<build>
113+
<plugins>
114+
<plugin>
115+
<groupId>io.quarkus</groupId>
116+
<artifactId>quarkus-maven-plugin</artifactId>
117+
<version>${quarkus.version}</version>
118+
<executions>
119+
<execution>
120+
<goals>
121+
<goal>native-image</goal>
122+
</goals>
123+
<configuration>
124+
<enableHttpUrlHandler>true</enableHttpUrlHandler>
125+
</configuration>
126+
</execution>
127+
</executions>
128+
</plugin>
129+
<plugin>
130+
<artifactId>maven-failsafe-plugin</artifactId>
131+
<version>${surefire-plugin.version}</version>
132+
<executions>
133+
<execution>
134+
<goals>
135+
<goal>integration-test</goal>
136+
<goal>verify</goal>
137+
</goals>
138+
<configuration>
139+
<systemProperties>
140+
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
141+
</systemProperties>
142+
</configuration>
143+
</execution>
144+
</executions>
145+
</plugin>
146+
</plugins>
147+
</build>
148+
</profile>
149+
</profiles>
94150
</project>

appengine-java11/quarkus-helloworld/src/main/resources/META-INF/microprofile-config.properties

Lines changed: 0 additions & 13 deletions
This file was deleted.

appengine-java11/quarkus-helloworld/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515
# Set the port to the PORT environment variable
16-
quarkus.http.port=${PORT:8080}
16+
quarkus.http.port=${PORT:8080}

0 commit comments

Comments
 (0)