I must have a big blank in my knowledge of Maven, because I run into this problem on a regular basis...
I want to use Gson library (https://code.google.com/p/google-gson/) in my project. I added the following dependency to my pom.xml, as per the project's homepage:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3</version>
</dependency>
That's nice. However, the dependency is not found by Eclipse. And that kinda makes sense. Where would it look for it? Which repository? I have a number of repositories declared in the pom.xml, but maybe none of them contain Gson.
And this is really a general question. I'd say most projects I've seen so far do not say which repository the artifact is stored in. They only provide the XML element for the dependency. What am I missing here? Does the main Maven repo contain all artifacts ever released by anyone? Please help me understand why so many projects do not say which repository their artifacts are stored in.
And if you could also tell me where do I find Gson artifact - I'd greatly appreciate it.