|
1 | 1 | <?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" |
3 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 5 | + |
4 | 6 | <modelVersion>4.0.0</modelVersion> |
5 | 7 | <groupId>works.buddy.samples</groupId> |
6 | 8 | <artifactId>works-with-heroku</artifactId> |
7 | 9 | <version>1.0</version> |
8 | 10 | <packaging>war</packaging> |
| 11 | + |
9 | 12 | <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> |
12 | 15 | </properties> |
| 16 | + |
13 | 17 | <dependencies> |
14 | 18 | <dependency> |
15 | 19 | <groupId>javax.servlet</groupId> |
|
31 | 35 | </dependency> |
32 | 36 | </dependencies> |
33 | 37 |
|
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> |
45 | 50 |
|
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