gudii9
asked on
repository in pom file
hi,
i am going through below link
https://www.mkyong.com/webservices/jax-rs/jersey-hello-world-example/
why we need above repository tag in pom.xml.
if i remove what happens
please advise
i am going through below link
https://www.mkyong.com/webservices/jax-rs/jersey-hello-world-example/
pom.xml
<project ...>
<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
</repositories>
why we need above repository tag in pom.xml.
if i remove what happens
please advise
I am not expert on Maven, nor Java. Anyway, if pom.xml is a project file, it captures the information about the project. Maven is a version control system used mainly for Java. So, the repository element captures where the repository (that is the database of all versions of the project) is located. Informations like this allow to save versions/build application automatically while storing also project versions automatically.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
let me understand this
ASKER
The order the repositories are searched is:
local
central
remote
is it not as below which i though
The order the repositories are searched is:
local
remote
central
Please advise
What do you not understand?