Announcement Announcement Module
Collapse
No announcement yet.
maven repo problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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).

      Comment


      • #4
        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

        Comment


        • #5
          Second that!

          Comment


          • #6
            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.

            Comment

            Working...
            X