Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

repository in pom file

hi,

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>

Open in new window


why we need above repository tag in pom.xml.
if i remove what happens

please advise
Avatar of pepr
pepr

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
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

let me understand this
Avatar of gudii9

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?