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 26 build to work --> 12 <properties> 13 <maven.compiler.source>26</maven.compiler.source> 14 <maven.compiler.target>26</maven.compiler.target> 15 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 16 </properties> 17 18 <build> 19 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> 20 <plugins> 21 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> 22 <plugin> 23 <artifactId>maven-clean-plugin</artifactId> 24 <version>3.2.0</version> 25 </plugin> 26 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> 27 <plugin> 28 <artifactId>maven-resources-plugin</artifactId> 29 <version>3.3.1</version> 30 </plugin> 31 <plugin> 32 <artifactId>maven-compiler-plugin</artifactId> 33 <version>3.11.0</version> 34 </plugin> 35 <plugin> 36 <artifactId>maven-surefire-plugin</artifactId> 37 <version>3.1.2</version> 38 </plugin> 39 <plugin> 40 <artifactId>maven-jar-plugin</artifactId> 41 <version>3.3.0</version> 42 </plugin> 43 <plugin> 44 <artifactId>maven-install-plugin</artifactId> 45 <version>3.1.1</version> 46 </plugin> 47 <plugin> 48 <artifactId>maven-deploy-plugin</artifactId> 49 <version>3.1.1</version> 50 </plugin> 51 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> 52 <plugin> 53 <artifactId>maven-site-plugin</artifactId> 54 <version>4.0.0-M9</version> 55 </plugin> 56 <plugin> 57 <artifactId>maven-project-info-reports-plugin</artifactId> 58 <version>3.4.5</version> 59 </plugin> 60 <plugin> 61 <groupId>org.apache.maven.plugins</groupId> 62 <artifactId>maven-compiler-plugin</artifactId> 63 <version>3.11.0</version> 64 <configuration> 65 <release>26</release> 66 <target>26</target> 67 <compilerArgs> 68 <arg>--enable-preview</arg> 69 <arg>--add-modules=jdk.incubator.code</arg> 70 </compilerArgs> 71 </configuration> 72 </plugin> 73 <plugin> 74 <groupId>org.apache.maven.plugins</groupId> 75 <artifactId>maven-surefire-plugin</artifactId> 76 <version>3.1.2</version> 77 <configuration> 78 <argLine>--enable-preview</argLine> 79 <argLine>--add-modules=jdk.incubator.code</argLine> 80 </configuration> 81 </plugin> 82 </plugins> 83 </pluginManagement> 84 </build> 85 86 </project>