11<?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 >
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 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
65
7- <groupId >com.baeldung</groupId >
8- <artifactId >junit5</artifactId >
9- <version >1.0-SNAPSHOT</version >
6+ <groupId >com.baeldung</groupId >
7+ <artifactId >junit5</artifactId >
8+ <version >1.0-SNAPSHOT</version >
109
11- <name >junit5</name >
12- <description >Intro to JUnit 5</description >
10+ <name >junit5</name >
11+ <description >Intro to JUnit 5</description >
1312
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 >
13+ <properties >
14+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15+ <java .version>1.8</java .version>
16+ < junit .jupiter.version> 5.0.0-M2</ junit .jupiter.version >
17+ <junit .platform .version>1 .0.0-M2 </junit .platform .version>
18+ </properties >
2019
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 >
20+ <build >
21+ <plugins >
22+ <plugin >
23+ <artifactId >maven-compiler-plugin</artifactId >
24+ <version >3.1</version >
25+ <configuration >
26+ <source >${java.version} </source >
27+ <target >${java.version} </target >
28+ </configuration >
29+ </plugin >
30+ <plugin >
31+ <artifactId >maven-surefire-plugin</artifactId >
32+ <version >2.19</version >
33+ <dependencies >
34+ <dependency >
35+ <groupId >org.junit.platform</groupId >
36+ <artifactId >junit-platform-surefire-provider</artifactId >
37+ <version >${junit.platform.version} </version >
38+ </dependency >
39+ </dependencies >
40+ </plugin >
41+ </plugins >
42+ </build >
3543
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 >
44+ <dependencies >
45+ <dependency >
46+ <groupId >org.junit.jupiter</groupId >
47+ <artifactId >junit-jupiter-engine</artifactId >
48+ <version >${junit.jupiter.version} </version >
49+ <scope >test</scope >
50+ </dependency >
5051
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 >
52+ </dependencies >
8353</project >
0 commit comments