I would like to check from command line if a certain coordinate (groupId.artifactId.version
) can be found in a repository.
If it is possible, can it be
I've never heard about something like this. Probably get
goal of dependency
plugin is somehow close, but it's still not exactly what you're looking for. I'm afraid there's no such thing. However, wrting own Maven plugin that does what you want could be pretty simple. New artifact resolution mechanism in Maven 3, called Aether, has really good and simple API.
Anyway, look at dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/get-mojo.html