Maven
Maven
1.Generate Resource
2.Compile Code
3.Unit Test
4.Package (build)
BUILD TOOL:
It is used to set up everything which is required to run your java code This
can be applied to your entire java project.
It generates source code, compiling code, packaging code to a jar etc.
POM refers the XML file that have all information regarding project and
configuration details
Main configuration file is in pom.xml.
It has description of the Project details regarding version and configuration
management.
The XML file is in the Project home directory.
src/main/java: This is where the Java source code for your application resides.
src/test/java: This folder holds the unit and integration test Java code.
Typically, this includes frameworks like JUnit or TestNG for testing.
target/: After building the project, Maven places compiled class files and
packaged artifacts (like JARs) here.
Consistency: The structure is the same across all Maven projects, making it
easy for new developers to navigate and understand your project.
Automation: Maven knows where to find source code, resources, and tests
based on this structure, making builds more predictable.
Increasingly preferred
Less preferred due to More preferred because
due to performance and
Preference lack of conventions and of its standardization
flexibility, especially for
lifecycle management. and ease of use.
large projects.