-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
60 lines (52 loc) · 1.84 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.adojos</groupId>
<artifactId>maven-quick-start</artifactId>
<version>1.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Maven Compiler (For>=Java8) Method 1: Using POM properties -->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- Maven Compiler (For<=Java9) Method 5: Using 'release' for Compiler -->
<maven.compiler.release>11</maven.compiler.release>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.0</version>
<!-- Maven Compiler (For>=Java8) Method 2: Using source & target for Compiler -->
<configuration>
<source>11</source>
<target>11</target>
<!-- Maven Compiler (For<=Java9) Method 4: Using 'release' for Compiler -->
<release>11</release>
<!-- Maven Compiler (For>=Java8) Method 3: Using Compiler <executable> -->
<!-- <verbose>true</verbose> -->
<fork>true</fork>
<executable><!-- path-to-javac --></executable>
<compilerVersion>11</compilerVersion>
</configuration>
</plugin>
</plugins>
</build>
</project>