Which plugin cleans the container project's target folder before Maven build?
A.
mvn-clean-plugin
B.
maven-scr-plugin
C.
maven-c lean-plugIn
The Answer Is:
C
This question includes an explanation.
Explanation:
In Maven, themaven-clean-pluginis used to clean the project by removing files generated at build-time in thetargetdirectory. Before a new build, cleaning the project is a common practice to ensure that no stale artifacts affect the new build. The plugin's goalcleanis bound to the clean phase of the build lifecycle and can be executed with the commandmvn clean.
Option A,mvn-clean-plugin, is incorrectly named; the correct name ismaven-clean-plugin.
Option B,maven-scr-plugin, is related to Service Component Runtime and not to cleaning build artifacts.
AD0-E123 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"