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]