Mention the phases of cleaning lifecycle.
Answer / Neeti Jaiswal
The Cleaning Lifecycle in Apache Maven consists of two phases: clean and pre-clean. The clean phase removes all output files generated during compilation, such as compiled source code (classes), generated source code (target/generated-sources/...), test output files (target/test-classes), and site files (target/site). The pre-clean phase only deletes the output files but leaves generated sources in place.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of optional dependency?
What is the command to check the maven version?
Where do we configure repositories in maven?
What do you mean by maven and why it is used?
What are the default values for the packaging element? If there is no packaging element defined? What is the default value for that?
what is Maven artifact?
List all the dependency scope in maven.
What does it mean when you say maven uses convention over configuration?
What is meant by a goal in maven?
What is meant by mojo in maven?
How do you check if you have maven installed?
What phases does a site lifecycle consist of?