dbaker wrote on Wednesday, February 28, 2007 5:22 PM:

> Hi
> 
> I'm having trouble in downloading snapshots to my local
> repository from a
> central repository stored on my company's network. The
> snapshots are built
> nightly in the central repository. If I build my application locally,
> it does not pull down the latest version of the snapshot into my local
> repository. However, if I delete my local version of the
> snapshot, when I
> run a local build it downloads the mssing snapshot from my repository
> - so I know I'm able to access the repository.
> 
> My understanding was that if the timestamp of the version in
> the central
> repository is more recent than that of the local version,
> then the local
> version would be updated. Is this correct, or does Maven only
> download to the local repository if the required artifact is missing?
> 
> My pom.xml file contains:
> 
>   <repositories>
>       <repository>
>       <id>central</id>
>       <name>Name</name>
>       <layout>default</layout>
>       <url>file:\\\J:\\repository</url>

This is not a valid URL.

>       </repository>
>   </repositories>
> 
> <dependency>
>          <groupId>myGroupId</groupId>
>          <artifactId>myArtifact</artifactId>
>          <version>1.0.0-SNAPSHOT</version>
> </dependency>
> 
> 
> My settings.xml file is:
> 
> <settings>
>      <profiles>
>          <profile>
>              <activation>
>                 <activeByDefault>true</activeByDefault>             
>             </activation> <repositories>
>                  <repository>
>                        <snapshots>
>                             <enabled>true</enabled>
>                             <updatePolicy>always</updatePolicy>
>                             <checksumPolicy>warn</checksumPolicy>
>                       </snapshots>
>                       <id>central</id>
>                       <name>Remote Repository</name>
>                       <layout>default</layout>
>                       <url>file:\\\J:\\repository</url>

This is not a valid URL.

>                  </repository>
>              </repositories>
>           </profile>
>         </profiles>
>   </settings>
> 
> Thanks in advance for your help.

file:///J:\repository

- Jörg

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

Reply via email to