From 56d17824cd221437d6304ebbd5062b62e3dd67e0 Mon Sep 17 00:00:00 2001 From: MakroCZ <marek.barinka@gmail.com> Date: Thu, 30 Apr 2020 10:52:53 +0200 Subject: [PATCH] Pom updates for JUnit --- MeshModel/pom.xml | 37 +++++++++++++++++++++++++++++++++---- pom.xml | 7 ++++++- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/MeshModel/pom.xml b/MeshModel/pom.xml index 92c90b63..c06a0cd3 100644 --- a/MeshModel/pom.xml +++ b/MeshModel/pom.xml @@ -48,6 +48,34 @@ </execution> </executions> </plugin> + <!-- Added based on tutorial project --> + <!--<plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>3.0.0-M4</version> + </plugin>--> + <!-- https://dzone.com/articles/why-your-junit-5-tests-are-not-running-under-maven Fool proof solution--> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.22.0</version> + <dependencies> + <dependency> + <groupId>org.junit.platform</groupId> + <artifactId>junit-platform-surefire-provider</artifactId> + <version>1.3.2</version> + </dependency> + </dependencies> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.22.0</version> + </plugin> + </plugins> </build> <repositories> @@ -70,8 +98,8 @@ <!-- https://github.com/mokiat/java-data-front --> <dependency> <groupId>com.github.mokiat</groupId> - <artifactId>java-data-front</artifactId> - <version>v2.0.0</version> + <artifactId>java-data-front</artifactId> + <version>v2.0.0</version> <type>jar</type> </dependency> <!-- https://mvnrepository.com/artifact/javax.vecmath/vecmath --> @@ -83,13 +111,14 @@ <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> - <version>RELEASE</version> + <version>5.6.0</version> <scope>test</scope> </dependency> + <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> - <version>RELEASE</version> + <version>7.1.0</version> <scope>test</scope> </dependency> </dependencies> diff --git a/pom.xml b/pom.xml index 3cc90170..9c9c4dd4 100644 --- a/pom.xml +++ b/pom.xml @@ -60,13 +60,18 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> - <version>2.19.1</version> + <version>2.22.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-failsafe-plugin</artifactId> + <version>2.22.0</version> + </plugin> </plugins> </pluginManagement> </build> -- GitLab