Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the format of the Maven Surefire plug-in <include> statement?

Tags:

java

maven-2

I'm trying to run Maven Surefire with an include statement of:

<include>**/[A-R]*SeleniumTest.java</include>
<include>**/[A-R]**SeleniumTest.java</include>
<include>**/[A-R].*SeleniumTest.java</include>

But it does not seem to support any of these notations. What is the syntax of this expression? (Documentation link would be much appreciated)

like image 436
krosenvold Avatar asked Feb 28 '23 16:02

krosenvold


1 Answers

The Maven Surefire Plugin follows the same semantics for configuring includes and excludes as Maven's FileSets.

You can find some details on how that works via Maven: The Definitive Guide (Section 12.7):

The includes section uses a list of include elements, which contain path patterns. These patterns may contain wildcards such as '**' which matches one or more directories or '*' which matches part of a file name, and '?' which matches a single character in a file name

like image 85
blahspam Avatar answered Apr 09 '23 22:04

blahspam