I'm working with a deeply nested Maven reactor project:
- root
pom.xml
specifies a moduledspace
- module
dspace
'spom.xml
specifies a modulemodules
- module
modules
'spom.xml
specifies (among others) a modulerest
So there is a nested module hierarchy: dspace -> modules -> rest
.
I have written JUnit tests for (sub-sub-)module rest
and would like to execute them. If I run mvn test -pl rest
, Maven fails:
[INFO] Scanning for projects...
[ERROR] [ERROR] Could not find the selected project in the reactor: rest @
[ERROR] Could not find the selected project in the reactor: rest -> [Help 1]
How can I execute tests in nested Maven modules?