It should be possible to include utils via the Maven resolver as long as the utils has been installed in your local repo first.
Well... You are certainly right, but that's not the point. The test phase comes before the install phase with the idea that no untested artifact goes to repository. Maven itself has no problems resolving artifact from reactor. (Imagine that you have to install every artifact from the multi-module projects before building its dependents - no one would like it.)
In my scenario, by the time integration-tests start, the utils module is built and available. Is it possible to make Maven dependency resolver also find artifacts in reactor, just as Maven itself does it?
Aa, no, that's currently not possible via the Maven Resolver. The Maven Resolver use the API that Maven use for the repositories, which is not the same as the 'within' same reactor api.
You can import the utils based on a known path, tho not a very good solution.
You can file a Feature Request for it on ShrinkWrap: https://issues.jboss.org/browse/SHRINKWRAP
Use hte ext-resolver component
I only now realized, that I made a mistake. The Maven test phase is executed before the package phase. This means that in clean project and empty repository the artifacts are not created by the time tests are executed. Installing artifacts in local repository and then executing the tests would be the simplest.
you could possible bing surefire to the integration-test phase instead, that should be after package but before install
Well, sure, I just don't want to do it ))