How do I know what is the correct version number I should include in my POM?
===

I am totally new to everything in Java and it gets confusing some times, for example I want to follow some example to learn about Jersey. So I go to their webiste and for Core-Server they say include this in your POM, which is using version 1.2 http://jersey.java.net/nonav/documentation/latest/user-guide.html#chapter_deps

    <dependency>
        <groupId>com.sun.jersey</groupId>
        <artifactId>jersey-server</artifactId>
        <version>1.12</version>
    </dependency>

Then I look at some other examples online and they say include this, using version 1.8

	

    <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>
     
    	<dependencies>
     
    		<dependency>
    			<groupId>com.sun.jersey</groupId>
    			<artifactId>jersey-server</artifactId>
    			<version>1.8</version>
    		</dependency>
     
    	</dependencies>

So I guess my main question is what is the correct way of finding these Maven coordinates ans to know what is the correct version number to use?

