Search code examples
mavenmaven-surefire-plugin

Where is the source-code to define the phase of surefire plugin?


As most of Java developers know, by default the execution phase of maven-surefire-plugin is test, which is of the same value of goal

Question: where is this part of logic in the maven-surefire-plugin source code?


Solution

  • Assuming you want to know the default phase of the test goal: it's here

    The default phase for a goal is part of the Mojo annotation that you use when writing maven plugins (which is a good read before embarking in looking at the insides of maven plugins).