RE: Problem downloading latest SNAPSHOT from central repository
Hi Jorg, thanks for your reply. I'm sure that the URL is correct because when I delete my local copy of the artifact, I am able to download the latest version correctly from the repository at the given URL. But thanks anyway. David Jörg Schaible wrote: > > 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: >> >> >> >> central >> Name >> default >> file:\\\J:\\repository > > This is not a valid URL. > >> >> >> >> >> myGroupId >> myArtifact >> 1.0.0-SNAPSHOT >> >> >> >> My settings.xml file is: >> >> >> >> >> >> true >> >> >> >> true >> always >> warn >> >> central >> Remote Repository >> default >> file:\\\J:\\repository > > This is not a valid URL. > >> >> >> >> >> >> >> Thanks in advance for your help. > > file:///J:\repository > > - Jörg > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-downloading-latest-SNAPSHOT-from-central-repository-tf3309925s177.html#a9246637 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problem downloading latest SNAPSHOT from central repository
Hi John Thanks for your reply. I just tried setting my goal to be deploy rather than install, but I don't have the maven-deploy-plugin so I'll need to get that and try again. I've checked the times on the local and remote machines and they are synchronised. I also removed the repository entry from my pom but it didn't make any difference. You have a good point in that I was duplicating my repository definition. I suppose that if you had different projects using different repositories, then it would be useful to define your repository in your pom. When I run Maven( ...\mvn clean install) my output lists the Snapshot names and says "checking for updates from central" (where "central" is my repository name) but it doesn't actually download the updates. Thanks a lot for your suggestions. David John J. Franey wrote: > > > dbaker wrote: >> >> 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? >> > > I've been using and configuring maven only for a few months, but I have > found the above to be true. I don't know if it uses the timestamp (from > the operating system) or the name extension applied when the artifact is > deployed. > > Which raises a thought: Does the continuos build perform a 'deploy' or an > 'install'? These operations result in differently named files. 'deploy' > puts the timestamp on the name of the file, 'install' does not. I don't > know, but only wonder, if it makes a difference for you. > > Check the times on the two systems to be certain they are synchronized. > > Finally, I don't know for sure, and have little hope that it would make a > difference, I would play around (just for grins) and temporarily remove > the repository element from the pom. Maybe having two definitions of the > repository is having an impact for you. I don't do this; all my > repositories are defined in my settings file. I don't know which way is > the 'maven' way. I think that specifying the repo in the pom would make > it a nuisance to relocate the repository. > > Regards, > John > > -- View this message in context: http://www.nabble.com/Problem-downloading-latest-SNAPSHOT-from-central-repository-tf3309925s177.html#a9246910 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem downloading latest SNAPSHOT from central repository
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: central Name default file:\\\J:\\repository myGroupId myArtifact 1.0.0-SNAPSHOT My settings.xml file is: true true always warn central Remote Repository default file:\\\J:\\repository Thanks in advance for your help. David -- View this message in context: http://www.nabble.com/Problem-downloading-latest-SNAPSHOT-from-central-repository-tf3309925s177.html#a9207052 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]