Results 1 to 6 of 6

Thread: maven repo problem

  1. #1
    Join Date
    May 2008
    Posts
    153

    Default maven repo problem

    I am trying to pull spring 3 from the maven repo using the directions found in the spring 3 reference. I'm using m2eclipse. I can add other repositories just fine (jboss for example), but I can't seem to get it to read from the spring repo:
    In my .m2/settings.xml:
    Code:
    <repository>
       <id>com.springsource.repository.maven.release</id>
       <url>http://maven.springframework.org/release/</url>
       <snapshots><enabled>false</enabled> </snapshots>
       </repository>
    </repositories>
    When I try to update in m2eclipse I get the error:
    Code:
    Updating index com.springsource.repository.maven.release|
    http://maven.springframework.org/release/
    Unable to update index for com.springsource.repository.maven.release|
    http://maven.springframework.org/release/: 
    Resource nexus-maven-repository-index.properties does not exist

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    the error message that you're seeing is because we don't host a nexus index on our maven repos.

    Have you tried just adding some dependencies to your pom.xml? This normally triggers a download of appropriate JARs. See example below:

    Code:
      <dependencies>
      	<dependency>
      		<artifactId>spring-aop</artifactId>
      		<groupId>org.springframework</groupId>
      		<version>3.0.3.RELEASE</version>
      	</dependency>
      </dependencies>
    HTH

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    May 2008
    Posts
    153

    Default

    Yes, I can resolve them that way (it pulls from the maven central repo). I was trying to use the spring repo (thinking it would be more up to date).

  4. #4
    Join Date
    Apr 2007
    Posts
    14

    Default Please consider hosting a nexus index on spring repo

    Hi,

    the error message that you're seeing is because we don't host a nexus index on our maven repos.

    I have been running into this same problem. After struggling for many months
    with maven and eclipse and now STS I have finally discovered the beauty of
    m2eclipse. When set up correctly I can use it (via ctrl-shift-o)
    to auto-magically bring in imports AND likewise it will update your pom dependencies for you,
    this is way cool and helps out us maven rookies a lot.
    However, this feature only works if the repository has an index.

    It sure would be nice if the springsource team would consider putting and
    index on their repos - I along with your other users would be very grateful.

    Thanks,
    Tim

  5. #5

    Default

    Second that!

  6. #6

    Default

    I faced the same issue. I resolved it by settting "Download Remote Indexes" to False on all Spring repo proxies in Nexus. As a result, maven had Nexus download the artifacts without Nexus failing to download the index.

Posting Permissions

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