Plugins and the build lifecycle revisited
On This Lesson 4 topics
The content for this lesson is written and waiting for review. The outline below shows what it covers. It will be published once it is approved.
In this lesson
configure the common plugins.
Planned topics
- Lifecycle phases:
validate,compile,test,package,verify,install,deploy. - Plugins do the work in each phase.
- Compiler plugin: sets the Java release, for example
<release>. - Surefire runs unit tests (
*Test) in thetestphase. - Failsafe runs integration tests (
*IT) inintegration-testand checks them inverify.
Draft outline details
Demonstration
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration><release>${java.version}</release></configuration>
</plugin>Check your understanding
Which plugin runs integration tests?
Show answer
Failsafe.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.