AS trunk : SNAPSHOTs being downloaded even with updatePolicy=never
jaikiran May 25, 2010 5:52 AMSometime back, for a quicker build of AS, it was recommended to use updatePolicy=never for snapshot repos http://community.jboss.org/thread/147383?tstart=0. This was working fine without any issues. But with the migration to the new nexus repos, the updatePolicy=never isn't honoured and SNAPSHOTS (of the AS trunk modules) are being downloaded when I do a mvn install on the testsuite module in AS trunk. I even tried setting updatePolicy=never on all the available repos in my settings.xml. But it still doesn't work. Here's a part of the log while building the testsuite module which shows the SNAPSHOTs being downloaded (this is just a part of the log. At the time of writing the downloads/build is still on!)
[jpai@jaikiran testsuite]$ mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building JBoss Application Server Testsuite [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ Downloading: https://repository.jboss.org/nexus/content/groups/developer//ws-commons/policy/1.0/policy-1.0.pom Downloading: https://repository.jboss.org/nexus/content/groups/developer//org/jboss/jbossas/jboss-as-iiop/6.0.0-SNAPSHOT/jboss-as-iiop-6.0.0-20100524.053426-981.jar 311K downloaded Downloading: https://repository.jboss.org/nexus/content/groups/developer//org/jboss/jbossas/jboss-as-main/6.0.0-SNAPSHOT/jboss-as-main-6.0.0-20100524.053426-1076.jar 33K downloaded Downloading: https://repository.jboss.org/nexus/content/groups/developer//org/jboss/jbossas/jboss-as-aspects/6.0.0-SNAPSHOT/jboss-as-aspects-6.0.0-20100524.053426-1043.jar 79K downloaded Downloading: https://repository.jboss.org/nexus/content/groups/developer//org/jboss/jbossas/jboss-as-aspects/6.0.0-SNAPSHOT/jboss-as-aspects-6.0.0-20100524.053426-1043-jboss-aspect-library.jar 118K downloaded
And here's the settings.xml being used:
<settings> <localRepository>/opt/maven/repository</localRepository> <proxies> </proxies> <servers> <server> <id>jboss-developer-repository-group</id> <username>user</username> <password>pass</password> </server> <server> <id>jboss-snapshots-repository</id> <username>user</username> <password>pass</password> </server> <server> <id>jboss-releases-repository</id> <username>user</username> <password>pass</password> </server> </servers> <mirrors> <mirror> <id>jboss-developer-repository-group</id> <mirrorOf>*,!jboss-deprecated</mirrorOf> <name>JBoss.org Developer Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/developer/</url> </mirror> </mirrors> <profiles> <profile> <id>jboss-nexus</id> <repositories> <repository> <id>central</id> <name>Central repository proxy</name> <url>http://somedummyurl</url> <layout>default</layout> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://somedummyurl</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <!-- We don't want to download snapshots by default http://community.jboss.org/thread/147383 --> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <id>jboss-deprecated</id> <repositories> <repository> <id>jboss-deprecated</id> <name>JBoss Deprecated Repository</name> <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>jboss-nexus</activeProfile> </activeProfiles> </settings>
So how do I prevent the SNAPSHOT downloads?