Results 1 to 6 of 6

Thread: Maven: Unable to download spring-ws-2.0.2.RELEASE.jar from central repository?

  1. #1

    Default Maven: Unable to download spring-ws-2.0.2.RELEASE.jar from central repository?

    Hello,

    I would like to add the Spring WS dependency to my maven pom.xml file like so:

    Code:
    <dependency>
        <groupId>org.springframework.ws</groupId>
        <artifactId>spring-ws</artifactId>
        <version>2.0.2.RELEASE</version>
    </dependency>
    I got the above code from this webpage:



    When I got to



    I can see that Spring WS 2.0.2 RELEASE is there, but with a "...-all.jar" file.

    When I try to build my project with maven, I got the following error:

    Code:
    [INFO] ------------------------------------------------------------------------
    [INFO] Building SampleProject-1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo1.maven.org/maven2/org/springframework/ws/
      spring-ws/2.0.2.RELEASE/spring-ws-2.0.2.RELEASE.jar
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.739s
    [INFO] Finished at: Fri Jul 22 10:41:11 CEST 2011
    [INFO] Final Memory: 2M/15M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project SampleProject: Could not resolve dependencies
    for project com.sample.test:SampleProject:jar:1.0-SNAPSHOT: 
    Could not find artifact org.springframework.ws:spring-ws:jar:2.0.2.RELEASE
    in central (http://repo1.maven.org/maven2)
    The contents of my local repository ("org\springframework\ws\spring-ws\2.0.2.RELEASE") for Spring WS looks as this:

    Code:
    _maven.repositories (1 kb)
    spring-ws-2.0.2.RELEASE.jar.lastUpdated (1 kb)
    spring-ws-2.0.2.RELEASE.pom (15 kb)
    spring-ws-2.0.2.RELEASE.pom.sha1 (1 kb)

    I'm really stuck here - I hope anyone has an idea how to solve this.


    Thanks a lot for your help!


    UPDATE

    The initial Maven error message, when first downloading the Spring WS jar, is the follwoing:

    Code:
    [ERROR] Failed to execute goal on project ABC: Could not resolve dependencies for project 
    ABC:jar:1.0-SNAPSHOT: Could not find artifact org.springframework.ws:spring-ws:jar:2.0.2.RELEASE
    in central (http://repo1.maven.org/maven2) -> [Help 1]
    Maybe this helps?
    Last edited by patb; Jul 22nd, 2011 at 03:59 AM.

  2. #2

    Default

    I'm sorry for bumping this thread, but I just cannot manage to get the Spring WS JAR file via the central maven repository.

    Am I doing anything terribly wrong here?

    Thank you!

  3. #3
    Join Date
    Aug 2011
    Posts
    1

    Default Possible workaround

    Had the same problem, so I tried a different dependency that seemed to work:

    <dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>org.springframework.ws</artifactId>
    <version>2.0.0.RELEASE</version>
    </dependency>

    2.0.2.RELEASE should also work. Not sure why the original maven snippet doesn't work.

  4. #4

    Default

    Hello temadison,

    thanks a lot for your answer. Unfortunately, your <dependency> does not work for me, maven gives me the following output:

    Code:
    >mvn test
    
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Test 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    
    Downloading: http://maven.springframework.org/milestone/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.pom
    Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.pom
    Downloading: http://repo1.maven.org/maven2/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.pom
    
    [WARNING] The POM for org.springframework.ws:org.springframework.ws:jar:2.0.0.RELEASE is missing, no dependency information available
    
    Downloading: http://maven.springframework.org/milestone/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.jar
    Downloading: http://repository.jboss.org/nexus/content/groups/public/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.jar
    Downloading: http://repo1.maven.org/maven2/org/springframework/ws/org.springframework.ws/2.0.0.RELEASE/org.springframework.ws-2.0.0.RELEASE.jar
    
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.797s
    [INFO] Finished at: Fri Aug 12 10:28:37 CEST 2011
    [INFO] Final Memory: 2M/15M
    [INFO] ------------------------------------------------------------------------
    
    [ERROR] Failed to execute goal on project [...]: Could not resolve dependencies for project [...]:war:1.0-SNAPSHOT: Could not find artifact org.springframework.ws:org.springframework.ws:jar:2.0.0.RELEASE in spring-milestone (http://maven.springframework.org/milestone) -> [Help 1]

    Any ideas? I just can't believe that no one uses Spring WS with maven, so I think I must do something really wrong :-/

  5. #5
    Join Date
    Jun 2006
    Location
    Lake Constance, Germany
    Posts
    3

    Default

    This gave me a headache as well. I guess that with the latest spring ws version one is suppossed to use the spring-ws-core artifact instead of the spring-ws artifact. It's really a shame that there is no reference for this on the spring ws website ;-(

    Code:
    		
    <!-- spring ws -->
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-ws-core</artifactId>
    			<version>2.0.2.RELEASE</version>
    		</dependency>

  6. #6
    Join Date
    Jan 2013
    Location
    Dalian,PRC
    Posts
    5

    Default

    Thanks kai for his/her answer. That really helped me
    And It's easy about why, you guys can check "spring-ws-2.1.3.RELEASE.pom" in http://repo.springsource.org/release...2.1.3.RELEASE/, The <packaging>'s value is "pom", the normal dependency which can get a jar should be <packaging>jar</packaging>, so if you want to make spring-ws is correct in <dependency> you should code pom.xml like
    Code:
    <dependency>
    		    <groupId>org.springframework.ws</groupId>
        		<artifactId>spring-ws</artifactId>
        		<version>2.1.3.RELEASE</version>
                    <type>pom</type>
    		</dependency>
    But it would not get the jar, so that your compile progress would not successfully as well.
    Last edited by palmtale; Apr 21st, 2013 at 05:46 AM.

Posting Permissions

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