What is the <url> http://maven.apache.org </url> "tag in a project tag in pom.xml?

For some time I have been using a dependency management tool like Maven. I could not understand what the url tag in pom.xml is for in the project tag.

<project> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.app</groupId> <artifactId>my-app</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>Maven Quick Start Archetype</name> <url>http://maven.apache.org</url> <dependencies> ... </dependencies> </project> 
+6
source share
1 answer

The URL gives you information about the project in which the project is hosted.

from the documentation ( http://maven.apache.org/pom.html ):

url: URL, like name, is not required. This is a good gesture for users of projects, however, so that they know where the lives.url project is: a URL, like a name, is not required. This is a nice gesture for users of projects, however, so that they know where the life of the project is.

Examples

Joda time:

https://github.com/JodaOrg/joda-time/blob/master/pom.xml

  <packaging>jar</packaging> <name>Joda-Time</name> <version>2.8-SNAPSHOT</version> <description>Date and time library to replace JDK date handling</description> <url>http://www.joda.org/joda-time/</url> 

apache commons-lang: http://svn.apache.org/viewvc/commons/proper/lang/trunk/pom.xml?view=markup

  <inceptionYear>2001</inceptionYear> <description> Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang hierarchy, or are considered to be so standard as to justify existence in java.lang. </description> <url>http://commons.apache.org/proper/commons-lang/</url> 
+5
source

Source: https://habr.com/ru/post/981908/


All Articles