Retrieving Maven Artifact from Repository using Maven Java API

后端 未结 3 1482
谎友^
谎友^ 2021-01-12 05:17

If I have a Maven Artifact information (GroupId, ArtifactId, Version) how can I programmatically (using Java) retrieve that Artifact from my local repository?

Specif

3条回答
  •  误落风尘
    2021-01-12 06:10

    You can construct a URL from the given information and download the file (note, replace the '.' in the with '/'):

    ////-.
    

提交回复
热议问题