How to determine if a Maven artifact is in my repo from command line?

前端 未结 2 1180
野性不改
野性不改 2020-12-24 02:58

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

2条回答
  •  粉色の甜心
    2020-12-24 03:45

    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

提交回复
热议问题