Hi,

> I want to test my JPMS module using maven surefire plugin (2.22) 
> with junit5. For this I added the following to my pom:
> 
> ...
>            <dependency>
>                <groupId>org.junit.jupiter</groupId>
>                <artifactId>junit-jupiter-engine</artifactId>
>                <version>5.3.0</version>
>                <scope>test</scope>
>             </dependency>
> ...
>            <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-plugin</artifactId>
>                 <version>2.22.0</version>
>                 <configuration>
>                     <excludes>
>                         <exclude>**/IT*.java</exclude>
>                     </excludes>
>                 </configuration>
>             </plugin>
> 
> However, I have this error:
> 
> Please refer to dump files (if any exist)[date]-jvmRun[N].dump,
> [date].dumpstream and[date]-jvmRun[N].dumpstream.The forked VM 
> terminated without properly saying goodbye. VM crash orSystem.exit 
> called?Command was /bin/sh -c cd "/home/project"&&/opt/jdk-9/bin/
> java '@/home/project/target/surefire/
> surefireargs4438382394951202560''/home/project/target/
> surefire'2018-09-13T13-42-05_435-jvmRun1 
> surefire4870497011802680670tmp surefire_015850140770716473411tmp
> Error occurred in starting fork, check output in log
> ProcessExitCode:1

(...)

> Could anyone explain what I do wrong? It seems to
> me that I don't use module-path while testing but how to use it I 
> didn't find. Maybe any links to examples.
> Please, help.

It seems similar to the issue reported here:
https://issues.apache.org/jira/browse/SUREFIRE-1528

Can you try switching to m-surefire-p 2.21.0? 
On my system this additionally resolved a ClassNotFoundException I 
suddenly saw with 2.22.0 in one of our projects; see 
https://issues.apache.org/jira/browse/SUREFIRE-1537


Regards

Thorsten

Reply via email to