maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leahpar <raphael.pe...@free.fr>
Subject updatePolicy
Date Mon, 26 Jun 2006 13:19:22 GMT

Hello world,

I want to  prevent update to be made from maven repo
1- need to choose date of update 
2- get timeout on the proxy (on missing ressources?) very painfull

I have a maven_proxy link on ibiblio and codehaus
There's also a internal repo (on my xxx_release repository)
(superpom is here in a released version since snapshot are not allowed in
mirror,
I want to keep the settings as simple as possible)

first I try to set the proxy not to update itself with
snapshot.update=false
metadata.update=false
pom.update=falsebut 
not very good behavior...

now I try to restrict webaccess on maven repo
(I set back the proxy in update mode)
1- can I use something like this? and which id should I use in that case? 
		<repository> 
			<id>central</id> <!--                           this one            -->
			<!-- id>maven_mirror</id                       or this one ?        -->
			<url>http://mvnproxy/repository</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>never</updatePolicy> 
				<checksumPolicy>warn</checksumPolicy>
			</releases>			
			<snapshots>
				<enabled>false</enabled>
			</snapshots>			
		</repository>

2- I'm not confortable with the <release> <snapshot> in each repository. 
		snapshot seems to work but that's all I can say.
		Any comment?

Thanks

find below settings.xml and part of my super pom.xml
<!--
-----------------------------------------------------------------------------
-->
<settings>
	<localRepository>d:/maven_local_repository/</localRepository>
	<mirrors>
		<mirror>
			<id>maven_mirror</id>
			<url>http://mvnproxy/repository</url>
			<mirrorOf>central</mirrorOf>
		</mirror>
	</mirrors>
</settings>
<!--
-----------------------------------------------------------------------------
-->
<project>
	<modelVersion>4.0.0</modelVersion>
	<groupId>xx.pom</groupId>
	<artifactId>xx-super-pom</artifactId>
	<version>0.0.3</version>
	<packaging>pom</packaging>
	<name>Top high level xxxxx project</name>
	<prerequisites>
		<maven>2.0.4</maven>
	</prerequisites>
	<organization>
		<name>xxxxx</name>
		<url>http:/www.xxxxx.xxx/</url>
	</organization>
	<ciManagement>
		<system>continuum</system>
		<url>http://server/continuum/</url>
		<notifiers>
			<!--
				sendOnError 	Whether to send notifications on error.
				sendOnFailure 	Whether to send notifications on failure.
				sendOnSuccess 	Whether to send notifications on success.
				sendOnWarning 	Whether to send notifications on warning.
			-->
			<notifier>
				<type>mail</type>
				<configuration>
					<address>a@b.c</address>
				</configuration>
			</notifier>
		</notifiers>
	</ciManagement>
	<repositories>
		<!-- maven_mirror must be configured in the settings.xml-->
		<repository>
			<id>sun_mirror</id>
			<name>
				repository for product artifact which are not allowed to
				be distribute by maven
			</name>
			<url>
				http://server/repositories/sun_mirror/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>external_release</id>
			<name>
				repository of external product used by product released
				by xxxxx
			</name>
			<url>
				http://server/repositories/external_release/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>xx_release</id>
			<name>repository of product released by xxxxx</name>
			<url>
				http://server/repositories/xx_release/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>xx_snapshot</id>
			<name>
				temporary repository used for product not yet released
				by xxxxx
			</name>
			<url>
				http://server/repositories/xx_snapshot/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</snapshots>
		</repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>sun_mirror</id>
			<name>
				repository for plugin artifact which are not allowed to
				be distribute by maven
			</name>
			<url>
				http://server/repositories/sun_mirror/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>external_release</id>
			<name>
				repository of external plugin used by product released
				by xxxxx
			</name>
			<url>
				http://server/repositories/external_release/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>xx_release</id>
			<name>repository of plugin released by xxxxx</name>
			<url>
				http://server/repositories/xx_release/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>xx_snapshot</id>
			<name>
				temporary repository used for plugin not yet released by
				xxxxx
			</name>
			<url>
				http://server/repositories/xx_snapshot/
			</url>
			<releases>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</releases>
			<snapshots>
				<enabled>true</enabled>
				<updatePolicy>interval:60</updatePolicy><!-- in minutes -->
				<checksumPolicy>warn</checksumPolicy>
			</snapshots>
		</pluginRepository>
	</pluginRepositories>
	<distributionManagement>
		<repository>
			<id>xx_release</id>
			<url>
				file:////server/MavenRepositories/repositories/xx_release
			</url>
		</repository>
		<snapshotRepository>
			<id>xx_snapshot</id>
			<url>
				file:////server/MavenRepositories/repositories/xx_snapshot
			</url>
		</snapshotRepository>
		<site>
			<id>xxwebsite</id>
			<name>xxxxx-project-web-site</name>
			<url>
				file:\\server/MavenRepositories/sites
			</url>
		</site>
	</distributionManagement>
	<profiles>


--
View this message in context: http://www.nabble.com/updatePolicy-t1848898.html#a5046878
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message