1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+
6+ <groupId >com.example</groupId >
7+ <artifactId >demo</artifactId >
8+ <version >1.0.0</version >
9+ <packaging >jar</packaging >
10+
11+ <name >demo</name >
12+ <url >http://www.example.com</url >
13+
14+ <properties >
15+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
16+ <java .version>11</java .version>
17+ <maven .compiler.source>${java.version} </maven .compiler.source>
18+ <maven .compiler.target>${java.version} </maven .compiler.target>
19+ <maven .compiler.release>${java.version} </maven .compiler.release>
20+
21+ <junit >5.6.2</junit >
22+
23+ <!-- Plugin versions -->
24+ <maven .shade>3.2.2</maven .shade>
25+ <maven .clean>3.1.0</maven .clean>
26+ <maven .resources>3.1.0</maven .resources>
27+ <maven .compiler>3.8.1</maven .compiler>
28+ <maven .surefire>3.0.0-M5</maven .surefire>
29+ <maven .jar>3.2.0</maven .jar>
30+ <maven .install>3.0.0-M1</maven .install>
31+ </properties >
32+
33+ <dependencies >
34+ <!-- Dependencies -->
35+
36+
37+ <!-- Testing dependencies-->
38+ <dependency >
39+ <groupId >org.junit.jupiter</groupId >
40+ <artifactId >junit-jupiter-api</artifactId >
41+ <version >${junit} </version >
42+ <scope >test</scope >
43+ </dependency >
44+ <dependency >
45+ <groupId >org.junit.jupiter</groupId >
46+ <artifactId >junit-jupiter-engine</artifactId >
47+ <version >${junit} </version >
48+ <scope >test</scope >
49+ </dependency >
50+ <dependency >
51+ <groupId >org.junit.jupiter</groupId >
52+ <artifactId >junit-jupiter-params</artifactId >
53+ <version >${junit} </version >
54+ <scope >test</scope >
55+ </dependency >
56+ </dependencies >
57+
58+ <build >
59+ <plugins >
60+ <plugin >
61+ <artifactId >maven-clean-plugin</artifactId >
62+ <version >3.1.0</version >
63+ </plugin >
64+ <plugin >
65+ <artifactId >maven-resources-plugin</artifactId >
66+ <version >3.1.0</version >
67+ </plugin >
68+ <plugin >
69+ <artifactId >maven-compiler-plugin</artifactId >
70+ <version >3.8.1</version >
71+ </plugin >
72+ <plugin >
73+ <artifactId >maven-surefire-plugin</artifactId >
74+ <version >3.0.0-M4</version >
75+ </plugin >
76+ <plugin >
77+ <artifactId >maven-jar-plugin</artifactId >
78+ <version >3.2.0</version >
79+ </plugin >
80+ <plugin >
81+ <artifactId >maven-install-plugin</artifactId >
82+ <version >3.0.0-M1</version >
83+ </plugin >
84+ <plugin >
85+ <groupId >org.apache.maven.plugins</groupId >
86+ <artifactId >maven-shade-plugin</artifactId >
87+ <version >${maven.shade} </version >
88+ <executions >
89+ <execution >
90+ <phase >package</phase >
91+ <goals >
92+ <goal >shade</goal >
93+ </goals >
94+ <configuration >
95+ <transformers >
96+ <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
97+ <mainClass >com.example.App</mainClass >
98+ </transformer >
99+ </transformers >
100+ </configuration >
101+ </execution >
102+ </executions >
103+ </plugin >
104+ </plugins >
105+ </build >
106+ </project >
0 commit comments