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

<profile>
        <id>default-repositories</id>
        <repositories>
                <repository>
                        <id>snapshot</id>
                        <name>SNAPSHOT Repository</name>
        
<url>http://hubpc65:8080/artifactory/snapshot</url>
                        <releases>
                                <enabled>false</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
        </repositories>
        <pluginRepositories>
                <pluginRepository>
                        <id>snapshot</id>
                        <name>SNAPSHOT Repository</name>
        
<url>http://hubpc65:8080/artifactory/snapshot</url>
                        <releases>
                                <enabled>false</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                                <updatePolicy>always</updatePolicy>
                        </snapshots>
                </pluginRepository>
        </pluginRepositories>
</profile>


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
> 
> 
> <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