1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+
7+ <groupId >com.baeldung</groupId >
8+ <artifactId >junit5</artifactId >
9+ <version >1.0-SNAPSHOT</version >
10+
11+ <name >junit5</name >
12+ <description >Intro to JUnit 5</description >
13+
14+ <properties >
15+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
16+ <java .version>1.8</java .version>
17+ <!-- Due to a bug in surefire-junit5-5.0.0-ALPHA we use the latest snapshot instead -->
18+ <junit .gen5.version>5.0.0-SNAPSHOT</junit .gen5.version>
19+ </properties >
20+
21+ <repositories >
22+ <repository >
23+ <id >snapshots-repo</id >
24+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
25+ <releases >
26+ <enabled >false</enabled >
27+ </releases >
28+ <snapshots >
29+ <!-- Do NOT cache JUnit 5 snapshot JARs. -->
30+ <updatePolicy >always</updatePolicy >
31+ <enabled >true</enabled >
32+ </snapshots >
33+ </repository >
34+ </repositories >
35+
36+ <pluginRepositories >
37+ <pluginRepository >
38+ <id >snapshots-repo</id >
39+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
40+ <releases >
41+ <enabled >false</enabled >
42+ </releases >
43+ <snapshots >
44+ <!-- Do NOT cache JUnit 5 snapshot JARs. -->
45+ <updatePolicy >always</updatePolicy >
46+ <enabled >true</enabled >
47+ </snapshots >
48+ </pluginRepository >
49+ </pluginRepositories >
50+
51+ <build >
52+ <plugins >
53+ <plugin >
54+ <artifactId >maven-compiler-plugin</artifactId >
55+ <version >3.1</version >
56+ <configuration >
57+ <source >${java.version} </source >
58+ <target >${java.version} </target >
59+ </configuration >
60+ </plugin >
61+ <plugin >
62+ <artifactId >maven-surefire-plugin</artifactId >
63+ <version >2.19</version >
64+ <dependencies >
65+ <dependency >
66+ <groupId >org.junit</groupId >
67+ <artifactId >surefire-junit5</artifactId >
68+ <version >${junit.gen5.version} </version >
69+ </dependency >
70+ </dependencies >
71+ </plugin >
72+ </plugins >
73+ </build >
74+
75+ <dependencies >
76+ <dependency >
77+ <groupId >org.junit</groupId >
78+ <artifactId >junit5-api</artifactId >
79+ <version >${junit.gen5.version} </version >
80+ <scope >test</scope >
81+ </dependency >
82+ </dependencies >
83+ </project >
0 commit comments