From the course: Introducing Maven
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Core plugins
- [Instructor] As we previously discussed, the core plugins are the most often used plugins within Apache Maven. In order to talk about these plugins, I actually want to use the Maven project website as our direction, so I ask you to navigate to https://maven.apache.org/plugins and that'll take you to this page here. Now we're going to talk about a few of the more common core plugins and we're going to start with the compiler plugin. The compiler plugin is actually responsible for doing the compilation of your source code and if you take a look there are several examples here and you can look at different configurations within this. But I want to focus on the Usage It shows you here that you can execute Maven compile or Maven test compile because the compiler plugin will also be used in your test class loader as well when you are doing test execution. If you scroll down here, you see some basics on configuring the plugin and this is very portable and can get dropped right into your…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.