You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Manoj Kumar <ja...@gmail.com> on 2006/02/14 12:21:23 UTC
how to use snapshot policy or how to update dependencies snapshots only
Hi all
I have read about snapshot-policy in a design document at the link given
below for modifying download behavior for the snapshots.
http://docs.codehaus.org/display/MAVEN/Repository+-+SNAPSHOT+Handling
but the given <snapshot-policy> tag is not working in my pom.xml file
when I added it under repository definition as follows
<repositories>
<repository>
<id>1</id>
<url>our own repository url</url>
<snapshots>
<enabled>true</enabled>
<snapshot-policy>always</snapshot-policy>
</snapshots>
</repository>
</repositories>
Also as too
<repositories>
<repository>
<id>1</id>
<url>our own repository url</url>
<snapshot-policy>always</snapshot-policy>
</repository>
</repositories>
But in both the cases I got unrecognized tag parse error.
I have tried it with both maven2.0 and maven2.0.2.
Is this feature is currently not available or I am doing something wrong.
I am doing all this to update my dependency snapshot's only, not the
plugins snapshots from
our own remote repository and I don't want use –U option as it updates
plugin's too.
Thanx!!