How do I prevent Maven from downloading metadata for an artifact that I already have in my repo? -



How do I prevent Maven from downloading metadata for an artifact that I already have in my repo? -

i’m using maven 3.2. have dependency in pom.xml file (a war project)

<dependency> <groupid>joda-time</groupid> <artifactid>joda-time</artifactid> <version>1.6.2</version> <scope>provided</scope> </dependency>

whenever run phase pom (e.g. “mvn install”), app attempts download metadata dependency …

downloading: http://repo.spring.io/milestone/joda-time/joda-time/maven-metadata.xml

how tell maven stop doing that? have artifact cached in local maven repo.

thanks, - dave

maybe update policies need specified explicitly. see answer: why maven downloading metadata every time?

<pluginrepositories> <pluginrepository> <id>central</id> <url>http://gotonexus</url> <snapshots> <enabled>true</enabled> <updatepolicy>daily</updatepolicy> </snapshots> <releases> <enabled>true</enabled> <updatepolicy>never</updatepolicy> </releases> </pluginrepository>

maven metadata artifacts

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

SQL Server : need assitance parsing delimted data and returning a long concatenated string -