javamavenpom.xml

Why are these used in pom.xml?


I'm curious about these things on pom file

  1. Why are these properties given in Spring Boot pom.xml?
  2. How can I use them?
 <url/>
  <licenses>
    <license/>
  </licenses>
  <developers>
    <developer/>
  </developers>
  <scm>
    <connection/>
    <developerConnection/>
    <tag/>
    <url/>
  </scm>

Solution

  • These are additional information about the maven projects. These attributes don't affect the project build.

    But some of these attribute like licenses, developers, scm are required if you want to publish to maven central repo.

    Ref: https://maven.apache.org/pom.html#More_Project_Information