Maven is a framework for project management which manages project's build, reporting, documentation, releases and distributions. It provides developers a complete build life cycle framework.
Advantages of Maven:
1. No need to add jars files in each project.
2. Creates correct directory structure
3. Setup the multiple development team environment in a very short time.
4. Build and deploy the project.
5. Generate source code if auto-deploy mode is enable.
6. Compile Source Code.
7. Packages compiled code into JAR.
What is POM.XML file in Maven:
POM stands for Project Object Model. It is a XML file which contains information about project and configurations details which are used by maven to build the project. Maven reads the pom.xml file and then perform the tasks.
Maven has 3 type of repositories which contains all the JARs and POM.XML file which can help in building the project.
1. Local Repository: It is located in the local system.By default, it is in %USER_HOME%/.m2 directory.
2. Central Repository: It is created by maven community itself. It contains a lot of common libraries.
3. Remote Repository: There can be possibilities that a libraries can't be available in central repository so that we can take it from the web. For those libraries we need to define remote repository in the pom.xml file.
Read: How to setup maven on windows.
Advantages of Maven:
1. No need to add jars files in each project.
2. Creates correct directory structure
3. Setup the multiple development team environment in a very short time.
4. Build and deploy the project.
5. Generate source code if auto-deploy mode is enable.
6. Compile Source Code.
7. Packages compiled code into JAR.
What is POM.XML file in Maven:
POM stands for Project Object Model. It is a XML file which contains information about project and configurations details which are used by maven to build the project. Maven reads the pom.xml file and then perform the tasks.
Maven has 3 type of repositories which contains all the JARs and POM.XML file which can help in building the project.
1. Local Repository: It is located in the local system.By default, it is in %USER_HOME%/.m2 directory.
2. Central Repository: It is created by maven community itself. It contains a lot of common libraries.
3. Remote Repository: There can be possibilities that a libraries can't be available in central repository so that we can take it from the web. For those libraries we need to define remote repository in the pom.xml file.
Read: How to setup maven on windows.
No comments:
Post a Comment