Skip to content

Commit 07d65f2

Browse files
committed
#5 Fix Maven build for Java 11.
1 parent 568c100 commit 07d65f2

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<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">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23

34
<modelVersion>4.0.0</modelVersion>
45

@@ -35,6 +36,22 @@
3536

3637
<build>
3738
<plugins>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-compiler-plugin</artifactId>
42+
<version>3.8.1</version>
43+
<configuration>
44+
<encoding>UTF-8</encoding>
45+
<failOnWarning>true</failOnWarning>
46+
<parameters>true</parameters>
47+
<release>11</release>
48+
<showDeprecation>true</showDeprecation>
49+
<showWarnings>true</showWarnings>
50+
<source>11</source>
51+
<target>11</target>
52+
</configuration>
53+
</plugin>
54+
3855
<plugin>
3956
<artifactId>maven-deploy-plugin</artifactId>
4057
<version>2.8.2</version>

0 commit comments

Comments
 (0)