JAVA-49: Moved compiler-plugin-java-9 to maven-modules

This commit is contained in:
sampadawagde 2020-06-28 13:46:38 +05:30
parent 2b38698713
commit ad9e01c2de
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,3 @@
### Relevant Articles
- [Maven Compiler Plugin](https://www.baeldung.com/maven-compiler-plugin)

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>compiler-plugin-java-9</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.plugin.version}</version>
<configuration>
<source>${source.version}</source>
<target>${target.version}</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<compiler.plugin.version>3.8.0</compiler.plugin.version>
<source.version>9</source.version>
<target.version>9</target.version>
</properties>
</project>

View File

@ -0,0 +1,9 @@
package com.baeldung.maven.java9;
import static javax.xml.XMLConstants.XML_NS_PREFIX;
public class MavenCompilerPlugin {
public static void main(String[] args) {
System.out.println("The XML namespace prefix is: " + XML_NS_PREFIX);
}
}

View File

@ -0,0 +1,3 @@
module com.baeldung.maven.java9 {
requires java.xml;
}