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.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit