Simple question, how can surefire 'see' the pom.xml file when building & the shrinkwrap artifact before executing the tests - my tests run fine in intellij but when i try them in maven then fail "pom.xml file must be defined and accessible" which makes sense as the pom.xml files are not in the working directory for sure-fire (i.e. target/target-classes)? this mustn't be unique to want to use the pom.xml file to build the test artifact?
i receive this error when a run tests from IDE and my pom file is in a submodule of the intellij project, to solve it i set "Worging directory" to "MODULE_DIR in run configuration.
see it here: https://www.youtube.com/watch?v=yUqJki-B4Ng
i hope it helps