1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>oracle.code.crsamples</groupId>
8 <artifactId>crsamples</artifactId>
9 <version>1.0-SNAPSHOT</version>
10
11 <!-- Requires JDK 28 build to work -->
12 <properties>
13 <maven.compiler.source>28</maven.compiler.source>
14 <maven.compiler.target>28</maven.compiler.target>
15 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16 </properties>
17
18 <dependencies>
19 <dependency>
20 <groupId>org.junit.jupiter</groupId>
21 <artifactId>junit-jupiter-engine</artifactId>
22 <version>5.10.1</version>
23 <scope>test</scope>
24 </dependency>
25 </dependencies>
26
27 <build>
28 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
29 <plugins>
30 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
31 <plugin>
32 <artifactId>maven-clean-plugin</artifactId>
33 <version>3.2.0</version>
34 </plugin>
35 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
36 <plugin>
37 <artifactId>maven-resources-plugin</artifactId>
38 <version>3.3.1</version>
39 </plugin>
40 <plugin>
41 <artifactId>maven-compiler-plugin</artifactId>
42 <version>3.11.0</version>
43 </plugin>
44 <plugin>
45 <artifactId>maven-surefire-plugin</artifactId>
46 <version>3.1.2</version>
47 </plugin>
48 <plugin>
49 <artifactId>maven-jar-plugin</artifactId>
50 <version>3.3.0</version>
51 </plugin>
52 <plugin>
53 <artifactId>maven-install-plugin</artifactId>
54 <version>3.1.1</version>
55 </plugin>
56 <plugin>
57 <artifactId>maven-deploy-plugin</artifactId>
58 <version>3.1.1</version>
59 </plugin>
60 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
61 <plugin>
62 <artifactId>maven-site-plugin</artifactId>
63 <version>4.0.0-M9</version>
64 </plugin>
65 <plugin>
66 <artifactId>maven-project-info-reports-plugin</artifactId>
67 <version>3.4.5</version>
68 </plugin>
69 <plugin>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-compiler-plugin</artifactId>
72 <version>3.11.0</version>
73 <configuration>
74 <compilerArgs>
75 <arg>--enable-preview</arg>
76 <arg>--add-modules=jdk.incubator.code</arg>
77 </compilerArgs>
78 </configuration>
79 </plugin>
80 <plugin>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-surefire-plugin</artifactId>
83 <version>3.1.2</version>
84 <configuration>
85 <argLine>--enable-preview</argLine>
86 <argLine>--add-modules=jdk.incubator.code</argLine>
87 </configuration>
88 </plugin>
89 </plugins>
90 </pluginManagement>
91 </build>
92
93 </project>