RE: Trying to work out where a snapshot caching problem is
The problem has been solved - thanks for your help. I assumed that the "mirror" would pick up the snapshots - obviously that is not the case. So I set it in the settings.xml file, and now everything works as expected. Thanks, Ian William Ferguson wrote: > > Ian, it sounds like you have not configured Maven with the address of > the snapshot repositories. > > I suspect you have just setup a mirror to point to the main repository > in Artifactory (in which you are caching Apache, Codehaus etc). Its > generally a good idea to keep release and snapshot artifacts separate in > any case > > Don't forget to list the pluginRepository too. > And don't foget to activate the profile, either in settings.xml > (typical) or on the command line. > > Try adding something like the following to your settings.xml > > > default-repositories > > > snapshot > SNAPSHOT Repository > > http://hubpc65:8080/artifactory/snapshot > > false > > > true > > > > > > snapshot > SNAPSHOT Repository > > http://hubpc65:8080/artifactory/snapshot > > false > > > true > always > > > > > > > William > > > >> -Original Message- >> From: Ian Rowlands [mailto:[EMAIL PROTECTED] >> Sent: Friday, 21 December 2007 7:47 AM >> To: undisclosed-recipients >> Subject: [***POSSIBLE SPAM***] - Trying to work out where a >> snapshot caching problem is - Sender is forged (SPF Fail) >> >> >> 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 >> >> >> >> >> >> artifactory.releases >> admin >> password >> >> >> artifactory.snapshots >> admin >> password >> >> >> >> >> artifactory >> * >> http://ebizci/artifactory/all/ >> Artifactory >> >> >> >> >> >> default >> >> >> >> Codehaus Snapshots >>http://snapshots.repository.codehaus.org/ >> >> >> Codehaus Snapshots >>http://snapshots.repository.codehaus.org/ >> >> >> >> >> >> >> default >> >> >> >> >> >> >> >> 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] > > > -- View this message in context: http://www.nabble.com/Trying-to-work-out-where-a-snapshot-caching
RE: Trying to work out where a snapshot caching problem is
Ian, it sounds like you have not configured Maven with the address of the snapshot repositories. I suspect you have just setup a mirror to point to the main repository in Artifactory (in which you are caching Apache, Codehaus etc). Its generally a good idea to keep release and snapshot artifacts separate in any case Don't forget to list the pluginRepository too. And don't foget to activate the profile, either in settings.xml (typical) or on the command line. Try adding something like the following to your settings.xml default-repositories snapshot SNAPSHOT Repository http://hubpc65:8080/artifactory/snapshot false true snapshot SNAPSHOT Repository http://hubpc65:8080/artifactory/snapshot false true always William > -Original Message- > From: Ian Rowlands [mailto:[EMAIL PROTECTED] > Sent: Friday, 21 December 2007 7:47 AM > To: undisclosed-recipients > Subject: [***POSSIBLE SPAM***] - Trying to work out where a > snapshot caching problem is - Sender is forged (SPF Fail) > > > 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 > > > > > > artifactory.releases > admin > password > > > artifactory.snapshots > admin > password > > > > > artifactory > * > http://ebizci/artifactory/all/ > Artifactory > > > > > > default > > > > Codehaus Snapshots >http://snapshots.repository.codehaus.org/ > > > Codehaus Snapshots >http://snapshots.repository.codehaus.org/ > > > > > > > default > > > > > > > > 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]
RE: Trying to work out where a snapshot caching problem is
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 always 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 artifactory.releases admin password artifactory.snapshots admin password artifactory * http://ebizci/artifactory/all/ Artifactory default Codehaus Snapshots http://snapshots.repository.codehaus.org/ Codehaus Snapshots http://snapshots.repository.codehaus.org/ default 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]