Is there a way, in Maven, to declare a dependency version range and have it resolve against the lower bound for the compile
phase of the build?
eg. I declare a dependency using version range [1.2.0,1.999.999]
. I would like for the compile
phase to use version 1.2.0
, specifically, but for the deployed POM to still show my compatible version range as [1.2.0,1.999.999]
.
My project is a library. For a non-library project I would just pin a specific version.