Skip to content

Commit be2d31c

Browse files
authored
Update pom.xml
1 parent 7eb55ab commit be2d31c

1 file changed

Lines changed: 43 additions & 37 deletions

File tree

pom.xml

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5+
46
<modelVersion>4.0.0</modelVersion>
57
<groupId>works.buddy.samples</groupId>
68
<artifactId>works-with-heroku</artifactId>
79
<version>1.0</version>
810
<packaging>war</packaging>
11+
912
<properties>
10-
<maven.compiler.source>17</maven.compiler.source>
11-
<maven.compiler.target>17</maven.compiler.target>
13+
<maven.compiler.source>17</maven.compiler.source>
14+
<maven.compiler.target>17</maven.compiler.target>
1215
</properties>
16+
1317
<dependencies>
1418
<dependency>
1519
<groupId>javax.servlet</groupId>
@@ -31,38 +35,40 @@
3135
</dependency>
3236
</dependencies>
3337

34-
<build>
35-
<plugins>
36-
<plugin>
37-
<groupId>org.apache.maven.plugins</groupId>
38-
<artifactId>maven-compiler-plugin</artifactId>
39-
<version>3.13.0</version>
40-
<configuration>
41-
<source>17</source>
42-
<target>17</target>
43-
</configuration>
44-
</plugin>
38+
<build>
39+
<plugins>
40+
<!-- ✅ Explicitly tell Maven to use Java 17 -->
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-compiler-plugin</artifactId>
44+
<version>3.13.0</version>
45+
<configuration>
46+
<source>17</source>
47+
<target>17</target>
48+
</configuration>
49+
</plugin>
4550

46-
<plugin>
47-
<groupId>org.apache.maven.plugins</groupId>
48-
<artifactId>maven-dependency-plugin</artifactId>
49-
<version>2.3</version>
50-
<executions>
51-
<execution>
52-
<phase>package</phase>
53-
<goals><goal>copy</goal></goals>
54-
<configuration>
55-
<artifactItems>
56-
<artifactItem>
57-
<groupId>org.eclipse.jetty</groupId>
58-
<artifactId>jetty-runner</artifactId>
59-
<version>9.3.3.v20150827</version>
60-
<destFileName>jetty-runner.jar</destFileName>
61-
</artifactItem>
62-
</artifactItems>
63-
</configuration>
64-
</execution>
65-
</executions>
66-
</plugin>
67-
</plugins>
68-
</build>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-dependency-plugin</artifactId>
54+
<version>2.3</version>
55+
<executions>
56+
<execution>
57+
<phase>package</phase>
58+
<goals><goal>copy</goal></goals>
59+
<configuration>
60+
<artifactItems>
61+
<artifactItem>
62+
<groupId>org.eclipse.jetty</groupId>
63+
<artifactId>jetty-runner</artifactId>
64+
<version>9.3.3.v20150827</version>
65+
<destFileName>jetty-runner.jar</destFileName>
66+
</artifactItem>
67+
</artifactItems>
68+
</configuration>
69+
</execution>
70+
</executions>
71+
</plugin>
72+
</plugins>
73+
</build>
74+
</project>

0 commit comments

Comments
 (0)