I'm building against various Lucene and Solr Maven artifacts from Apache's Maven repository hosted in the Nexus repository manager. The artifacts are version 4.0-SNAPSHOT
and get updated daily, with older artifacts being deleted regularly.
I was wondering how to peg the artifacts to a specific date, so whenever a Maven client would ask for solr-core 4.0-SNAPSHOT
, it would get the same version even if there was a newer one upstream.
I would also like to know how to explicitly update to the latest 4.0-SNAPSHOT
, but still keep all previous versions that were downloaded.
Specifically, the "Apache Snapshots" repository is the default one that comes setup when you install Nexus.