[BZ-1161577] avoid looking for existing snapshot version in maven repo during compilation