command line - Download specific POM file using it's Maven artifact -


i'm new maven, big picture need download (in command line) pom file of artifact in remote maven repository (artifactory) using it's artifact name , making dynamically (by giving repository root path , name of artifact, can change it's location inside repository , still download it).

my first question is: possible, or have detail whole artifact path, groupid, artifactid , version?

second point: managed download artifact using maven command gets .jar, not pom file:

mvn dependency:get -drepourl=my_repo_loc                    -dartifact=my_artifact_loc:my_artifact_name:artifact_version 

any idea on how can that?

first, don't need maven that. choose binary repository, can give solution directly. here's how:

since don't know location of artifact (i'd assume in terms of repository name? because rest pretty locked maven , know path if know gavc) , don't want list groupid , version, have search , prepared receive multiple results, on you'll have imply logic determine 1 need. here's how search in artifactory command line: http://wiki.jfrog.org/confluence/display/rtf/artifactory%27s+rest+api#artifactory%27srestapi-searches i'd recommend gavc search, since know artifactid.

if it's version unknown, , want latest version, can use latest artifact retrieval call or latest version search.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -