I'm wondering if this is something others have seen and perhaps something
I'm doing wrong.

I have a Maven project that uses a SNAPSHOT version of a library. I know
Maven needs to check the maven-metadata.xml file every day in order to
check if a new version of the snapshot is available, but in my case it
seems to be downloading this file for every version of the snapshot that
ever existed.

My pom.xml references the dependency ca.uhn.hapi.fhir:hapi-fhir-base with
<version>6.3.14-SNAPSHOT</version>, but in my build logs I see lines such
as:

16:34:58.543 INFO Downloading from oss-snapshots:
https://oss.sonatype.org/content/repositories/snapshots/ca/uhn/hapi/fhir/hapi-fhir/6.1.0-PRE1-SNAPSHOT/maven-metadata.xml
16:36:29.663 INFO Downloading from oss-snapshots:
https://oss.sonatype.org/content/repositories/snapshots/ca/uhn/hapi/fhir/hapi-fhir-base/6.1.0-PRE2-SNAPSHOT/maven-metadata.xml
16:36:34.835 INFO Downloading from oss-snapshots:
https://oss.sonatype.org/content/repositories/snapshots/ca/uhn/hapi/fhir/hapi-fhir-base/6.1.0-PRE3-SNAPSHOT/maven-metadata.xml

..and many more. Downloading all of these versions for all of the modules
in this library is adding tons of time and noise to my build. Is there a
way to configure Maven to not do this?

Cheers,
James

Reply via email to