I'm new to Maven, but the big picture is that I need to download (in command line) the POM file of a certain artifact which is in a remote maven repository (Artifactory) using just it's artifact name and making it dynamically (by giving only the repository root path and the name of the artifact, so I can change it's location inside the repository and still download it).
My first question is: is that possible, or I have to detail the whole artifact path, groupId, artifactId and version?
Second point: I managed to download the artifact using this maven command but it only gets the .jar, not the POM file:
mvn dependency:get -DrepoUrl=MY_REPO_LOC
-Dartifact=MY_ARTIFACT_LOC:MY_ARTIFACT_NAME:ARTIFACT_VERSION
Any idea on how can I do that?