Skip to content

SAGARFIVE

  • Linux
  • Networking
  • Git
  • Maven
  • Jenkins
  • Docker
  • Ansible
  • Terrafom
  • AWS
  • SQL
Menu
  • Linux
  • Networking
  • Git
  • Maven
  • Jenkins
  • Docker
  • Ansible
  • Terrafom
  • AWS
  • SQL

SAGAR5

  • Linux
  • Networking
  • Git
  • Maven
  • Jenkins
  • Docker
  • Ansible
  • Terrafom
  • AWS
  • SQL
Menu
  • Linux
  • Networking
  • Git
  • Maven
  • Jenkins
  • Docker
  • Ansible
  • Terrafom
  • AWS
  • SQL

   Maven    3. Maven POM    3.2 What is a modelVersion in pom.xml?

Tutorials

1. Introduction

  • 1.1 What is maven ?
  • 1.2 Maven History
  • 1.3 Why do we need maven ?
  • 1.4 Usecase of maven ?
  • 1.5 What is a build tool?
  • 1.6 What is an artifact ?
  • 1.7 MAVEN vs ANT ?
  • 1.8 Maven Installation

2. Maven Advanced

  • 2.1 Creating Simple Maven Project
  • 2.2 Maven Project Structure
  • 2.3 What is archetype ?
  • 2.4 What is pom.xml?

3. POM

  • 3.1 What is a project in pom.xml?
  • 3.2 What is a modelVersion in pom.xml?
  • 3.3 What is groupid?
  • 3.4 What is artifactId ?
  • 3.5 What is the version ?
  • 3.6 Name and url ?
  • 3.7 What are the Properties in pom.xml?
  • 3.8 Dependencies in pom.xml
  • 3.9 Build in pom.xml
  • 3.10 Plugins in pom.xml
  • 3.11 Maven Repository & Types

4. Maven Life Cycle

  • 4.1 Maven Life cycle
  • 4.2 Maven Build Life cycle
  • 4.3 Maven Clean Life cycle
  • 4.4 Maven Site Life cycle
  • 4.5 Maven - Snapshots
  • 4.6 Maven Phase
  • 4.7 Maven Goal

5. Maven Test

  • 5.1 Maven Test
  • 5.2 Maven Unit test - Surfire plugin with JUnit
  • 5.3 Maven Integration test - Failsafe Plugin

6. Maven+

  • 6.1 MOJO
  • 6.2 Settings.xml

3.2 What is a modelVersion in pom.xml?

  • This element indicates what version of the object model this POM is using.
  • The version of the model itself changes very infrequently but it is mandatory in order to ensure stability of use if and when the Maven developers deem it necessary to change the model.
  • It is the sub element of the project. It specifies the modelVersion. It should be set to 4.0.0.

  <modelVersion>4.0.0</modelVersion>
PrevPrevious3.1 What is a project in pom.xml?
Next3.3 What is groupid?Next
sagarfive

– Short Tutorial Notes

All rights reserved