I finally found a way to do what I wanted to achieve by running the junit 4 suite, i.e. by running all tests in all project modules with multiple modules. To do this, use the Johannes Link ClassPathSuite tool.
Download the jar, install it in your maven repo, create an allTests project, which depends on your other projects that your units live in, and create an AllTestClass. Below is a snippet of code and scn to illustrate the solution:
Install the jar in your maven repository

Create project allTests

pom ...
<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.prosveta.backend</groupId> <artifactId>alltests</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.prosveta.backend</groupId> <artifactId>serviceimpl</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.prosveta.backend</groupId> <artifactId>daoimpl</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.prosveta.backend</groupId> <artifactId>model</artifactId> <version>1.0-SNAPSHOT</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.junit.extensions</groupId> <artifactId>cpsuite</artifactId> <version>1.2.5</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> <type>jar</type> <scope>compile</scope> </dependency> </dependencies>
Add Dependencies to Eclipse ...

, and here is the whole class of tests
package com.prosveta.backend.serviceimpl; import org.junit.extensions.cpsuite.ClasspathSuite; import org.junit.runner.RunWith; @RunWith(ClasspathSuite.class) public class AllBackendTests { }
which you just run as JUnit.
source share