Big +1, this seems like a good idea and sensible default. I use JakartaEE and use Integration Tests very often (Open Liberty, or maybe executing some unpacked archive I built with jreleaser, testing a modular application, etc). A lot of people will run testcontainer tests in the verify phase, too, because they might take a second or two to start.
So, yeah, big +1. - Ben Am Fr., 12. Sept. 2025 um 09:23 Uhr schrieb Maarten Mulders <[email protected]>: > > Hi all, > > Putting implementation apart, I do agree with Rüdinger that it's not so > obvious why a default Maven project would invoke Surefire in the test > phase, but not Failsafe in the integration-test phase. > > If I recall correctly, projects like Spring Boot, Quarkus and others > "fix" this in their parent poms that they encourage you to use. Maybe > that is an indication that it actually makes sense to run > integration-tests by default...? > > Anyway, I would be happy to see this change in Maven 4. My preference > would be to have Failsafe run in a default project as well. > > Thanks, > > > Maarten > > On September 8, 2025 at 17:31, Tamás Cservenák wrote: > > Howdy, > > > > just to throw in bike-wrench: > > This is how Maven 4 super poms (for each model) looks like: > > https://github.com/apache/maven/tree/master/impl/maven-impl/src/main/resources/org/apache/maven/model > > > > (for diff, here is Maven 3 super pom > > https://github.com/apache/maven/blob/maven-3.9.x/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml) > > > > No any kind of plugin (in case of Maven 3, those plugins that has been > > talked about in this thread) is there. > > > > So what this thread is instead about lifecycles. I just wanted to > > clarify, as this is an important distinction. > > Lifecycles, unlike super POMs, can be provided by extensions. > > > > Thanks > > T > > > > On Fri, Sep 5, 2025 at 7:58 AM Rüdiger <[email protected]> wrote: > >> > >> Hiho! > >> > >> I was wondering, what you all think about adding the failsafe plugin to > >> the super pom of maven 4. I often work with young teams, and it's > >> difficult to explain, why the surefire plugin works out of the box, but > >> the failsafe plugin does not... and of course, it's a nuisance to have to > >> add it to every project. > >> > >> Maybe unit tests used to be more important than integration tests in the > >> past, but my perception is that this is changing: ITs become more and more > >> the primary way of testing, while unit tests become more optional and > >> focus on more complex algorithms. > >> > >> Kind regards > >> Rüdiger > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
