This is due to the snapshot update policy. By default maven will only
update once a day you need to update the snapshot policy to 'always' or
a more appropriate interval.

Add this to the snapshot repo definition

<snapshotPolicy>always</snapshotPolicy>  

Try this and see if it works for you.

Rgds,

ste
-----Original Message-----
From: Ian Rowlands [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 20, 2007 1:47 PM
To: undisclosed-recipients
Subject: Trying to work out where a snapshot caching problem is


Hi,

I'm having a problem with Maven caching and snapshots. I am using
Artifactory as a repository cache, which everybody is configured to use.
If
a release version is needed, everything is fetched into the users' local
repository as expected. However the same is not happening with
snapshots. I
know the snapshots are there - I can see them, and if I do a manual copy
out of Artifactory and place them in the local repository everything is
fine.

I'm not sure whether the problem is my Maven configuration, or an
Artifactory configuration. Are there any diagnostics I can turn on to
determine where the problem is? I've included the relevant bits of the
(customised) settings.xml which everybody is using. This happens with
Maven
2.0.7 and 2.0.8.

Thanks,

Ian


<settings>
  <servers>
    <server>
      <id>artifactory.releases</id>
      <username>admin</username>
      <password>password</password>
    </server>
    <server>
      <id>artifactory.snapshots</id>
      <username>admin</username>
      <password>password</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>artifactory</id>
      <mirrorOf>*</mirrorOf>
      <url>http://ebizci/artifactory/all/</url>
      <name>Artifactory</name>
    </mirror>
  </mirrors>
  <profiles>
    <!-- Default profile, which should always be set -->
    <profile>
      <id>default</id>
      <!-- Need this repository until the dashboard plugin becomes ready
for release -->
      <pluginRepositories>
        <pluginRepository>
          <id>Codehaus Snapshots</id>
          <url> http://snapshots.repository.codehaus.org/</url>
        </pluginRepository>
        <pluginRepository>
          <id>Codehaus Snapshots</id>
          <url> http://snapshots.repository.codehaus.org/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <!-- activeProfiles
   | List of profiles that are active for all builds.
   |-->
  <activeProfiles>
    <activeProfile>default</activeProfile>
  </activeProfiles>
</settings>





Disclaimer: The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If
you received this in error, please contact the sender and delete the
material from your computer.
Privacy: If you are responding to this email or providing personal
information to the SRO for the purposes of one of the Acts it
administers, such information  is used only for the purpose for which it
was collected (administration of SRO legislation ) and is protected by
the Information Privacy Act 2000 and secrecy provisions contained in
legislation administered by SRO. It is not disclosed otherwise than in
accordance with the law. If you would like a copy of the SRO Privacy
Policy please refer to SRO website (www.sro.vic.gov.au) or contact SRO
on 9628 0556 and request a copy.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to