ARTICLE AD BOX
I have a very simple source file. I am utilizing the new Java 25 feature -- Module Import Declarations.
import module java.base; import module java.desktop; public class abc { public static void main(final String[] args) { System.out.println("just an example"); } }And here is the relevant part of my pom file.
<build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.14.1</version> <configuration> <release>25</release> </configuration> </plugin> </plugins> </pluginManagement> </build>Obviously, if I compile the class manually using javac, it works just fine.
Here is what I get when I do mvn --version.
Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b) Maven home: C:\Users\david\_WORKSPACE_NEW\_PROGRAMMING\_MAVEN\apache-maven-3.9.11 Java version: 25.0.1, vendor: Oracle Corporation, runtime: C:\Users\david\_WORKSPACE_NEW\_PROGRAMMING\_JDK\jdk-25.0.1 Default locale: en_US, platform encoding: UTF-8 OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"Am I missing something here?
