If maven.test.skip is set (or if there are no unit tests), there should be no need to execute test:test-resources.
This allows putting preGoals and postGoals against test:test-resources which may be very time-consuming (such as database loads), and these other goals would not be executed if the tests are not run.
maven -Dmaven.test.skip=true
it still executes my pregoal.