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:
repositories
repository
idcentral/id
nameName/name
layoutdefault/layout
urlfile:\\\J:\\repository/url
This is not a valid URL.
/repository
/repositories
dependency
groupIdmyGroupId/groupId
artifactIdmyArtifact/artifactId
version1.0.0-SNAPSHOT/version
/dependency
My settings.xml file is:
settings
profiles
profile
activation
activeByDefaulttrue/activeByDefault
/activation repositories
repository
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicywarn/checksumPolicy
/snapshots
idcentral/id
nameRemote Repository/name
layoutdefault/layout
urlfile:\\\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]
--
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]