Results 1 to 3 of 3

Thread: Maven 1.0.0.BUILD-SNAPSHOT Url does not work

  1. #1
    Join Date
    Apr 2011
    Posts
    3

    Default Maven 1.0.0.BUILD-SNAPSHOT Url does not work

    I can't get files from the maven snapshot repository.

    The Milestone repository works:
    http://s3.amazonaws.com/maven.spring...b-1.0.0.M2.pom

    But the snapshot repository:
    http://s3.amazonaws.com/maven.spring...D-SNAPSHOT.pom

    gives the following error:
    <Error>
    <Code>NoSuchKey</Code>
    <Message>The specified key does not exist.</Message>
    <Key>
    snapshot/org/springframework/data/spring-data-mongodb/1.0.0.BUILD-SNAPSHOT/spring-data-mongodb-1.0.0.BUILD-SNAPSHOT.pom
    </Key>
    <RequestId>BDF67242B4302382</RequestId>
    <HostId>3KE7crqKaS0AfjtPMNUbbfPthhA97YFscN6vTu2A3k 5W9ZpRWkcisSMVPr4V6VR6</HostId>
    </Error>

  2. #2
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    74

    Default

    Hi,

    Not sure why you are having trouble. I just blew away all my local maven snapshot download and was able to access the snapshot jars.

    Hosting our maven snapshot repo on S3 is a bit of a PITA, but they are browsable here.

    I don't think it makes a difference, but you might want to add the snapshots enabaled option to the pom

    Code:
    	<repository>
    	  <id>spring-maven-snapshot</id>
    	  <snapshots><enabled>true</enabled></snapshots>
    	  <name>Springframework Maven SNAPSHOT Repository</name>
    	  <url>http://maven.springframework.org/snapshot</url>
    	</repository>
    The dependency as listed in my example app pom.xml that I just ran is

    Code:
    		<dependency>
    		 <groupId>org.springframework.data</groupId>
    		 <artifactId>spring-data-mongodb</artifactId>
    		 <version>1.0.0.BUILD-SNAPSHOT</version>
    		</dependency>
    Cheers,
    Mark

  3. #3
    Join Date
    Apr 2011
    Posts
    3

    Default

    Thanks a lot!!!
    With the
    Code:
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
    everything works fine!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •