POM Model
Pom stands for Project Object Model. It's a XML file contains project and configuration information from Maven to build the project. So in order to work with Maven, Pom.xml file is required.
Initially the pom.xml file gets created automatically. It can be generated automatically, but later DevOps Engineer will do modification like
- Adding some plugins,
- Making some changes to the version and things
overall the form will be created by the developers and initially that will be given to DevOps Engineer
Pom.xml file have following: -
- information related to your project.
- information related to the dependencies.
- source directory information.
- test source directory information.
- plugin information.
- information on what goal we are trying to achieve those information.
The Pom XML file include everything which is needed to build and release your project. Maven is dependent on Pom.xml file. It reads that pom.xml file which will help Maven to build your project. It looks for dependency. It will run your test cases. It will generate reports and depending upon what information you have given in the pom.xml file.
POM file structure
- This is very much required to build your Maven project.
- Root Element of POM XML file
- Model Version
- Project Group Id
- Project Artifact id
- Packaging type such as jar, war etc
- Artifact Version Number
- Name of Maven Project