I frequently have the problem, that I need customized snapshot releases of some open source artifacts contained in the Apache Snapshot or Sonatype Snapshot repositories. A nice way would be to deploy those customized artifact in my private Nexus repository.
How can I ensure that always my customized artifact gets fetched by Maven regardless, whether there is a newer snapshot in the public repositories? This means: Always take the artifact from the hosted snapshot repository when a match is present and use the public ones otherwise.