Maven command line to load last timestamp snapshot

I tried using this:

mvn dependency:get -DrepoUrl=http://myserver/artifactory -Dartifact=com.mypackage:my-package-name:1.0.0

However, it just loaded pom.xml in my artifactory, I have my-package-name-1.0.0-20120328.121341-3.jar

what I need to execute the command line is to load the snapshot with the last snapshot (without specifying the timestamp of the snapshot on the command line). can anyone let me know how to do this?

thank

+5
source share
1 answer

Add -SNAPSHOT to the specified version.

1.0.0, , - . 1.0.0-SNAPSHOT, Maven, 1.0.0 .

Maven Maven Artifactory .

+12

All Articles