Announcement Announcement Module
Collapse
No announcement yet.
Maven dependency to spring-ws Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maven dependency to spring-ws

    Hello,

    I would like to add Spring WS to my project. I use Maven. I have added that to my pom.xml.

    Code:
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-ws</artifactId>
    			<version>1.5.8</version>
    		</dependency>
    Unfortunately, it does not work. Maven fails to resolve artifacft. By the way, when I go to http://repo2.maven.org/maven2/org/sp...ring-ws/1.5.8/, there is not a spring-ws-1.5.8.jar but there is a spring-ws-1.5.8-all.jar. Maybe Maven is disturbed by that. How can I perform the downloading of the jar with Maven ?

    Thanks in advance

  • #2
    I'm having a similar issue when trying to access spring-ws through Maven. In my case, I'm working out of SpringSource Tool Suite. I've added spring-ws-archetype to the pom.xml and that works OK, but when I try to add spring-ws itself, I get an error message:

    Code:
    Missing artifact org.springframework.ws:spring-ws:jar:1.5.8:compile
    The lines from the pom.xml are below. Any idea why this isn't working?

    HTML Code:
    <dependency>
        <groupId>org.springframework.ws</groupId>
        <artifactId>spring-ws-archetype</artifactId>
        <version>1.5.8</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.ws</groupId>
        <artifactId>spring-ws</artifactId>
        <version>1.5.8</version>
    </dependency>

    Comment


    • #3
      Same problem here... Any updates ?

      Comment


      • #4
        Hi rherrick, loic,

        No I have no update and am still waiting for help from the community.

        Comment


        • #5
          Hi,

          you need to specify the modules you want to use from spring-ws, e.g. spring-ws-core and/or spring-ws-security in <artifactId>.

          regards
          jonas

          Comment


          • #6
            Originally posted by jonas007 View Post
            Hi,

            you need to specify the modules you want to use from spring-ws, e.g. spring-ws-core and/or spring-ws-security in <artifactId>.

            regards
            jonas
            Yep..

            This is what I have in my pom:

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

            Comment


            • #7
              Likewise. Just ran into this problem.

              Comment


              • #8
                Same here.

                Comment


                • #9
                  I believe the problem people are having is that maven assumes the following dependency:

                  Code:
                  <dependency>
                    <groupId>org.springframework.ws</groupId>
                    <artifactId>spring-ws</artifactId>
                    <version>1.5.8</version>
                  </dependency>
                  Is a jar dependency (it assumes <type>jar</type>).

                  Looking at the pom for this artifact in maven you'll see:

                  Code:
                  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
                      <modelVersion>4.0.0</modelVersion>
                      <groupId>org.springframework.ws</groupId>
                      <artifactId>spring-ws</artifactId>
                      <packaging>pom</packaging>
                      <version>1.5.8</version>
                      <name>Spring Web Services</name>
                  
                  ...
                  Notice the <packaging>pom</packaging>? This means in order to use this, you need to do the following in your project's dependency definition:

                  Code:
                  <dependency>
                    <groupId>org.springframework.ws</groupId>
                    <artifactId>spring-ws</artifactId>
                    <version>1.5.8</version>
                    <type>pom</type>
                  </dependency>
                  That said, I still see an issue with what is uploaded to maven since the following jar dependency is not on the maven central repositories:

                  Code:
                  <dependency>
                    <groupId>org.springframework.ws</groupId>
                    <artifactId>spring-ws-core-tiger</artifactId>
                    <version>1.5.8</version>
                  </dependency>
                  I had to download the spring-ws-1.5.8-minimal.zip, extract it to find the 1.5.8 version of spring-ws-core-tiger, and manually upload it to an internal shared maven repository so projects could use the following <dependency> definition:

                  Code:
                  <dependency>
                    <groupId>org.springframework.ws</groupId>
                    <artifactId>spring-ws-core-tiger</artifactId>
                    <version>1.5.8</version>
                  </dependency>
                  Hope this helps.
                  Last edited by Temujin_12; Jan 11th, 2010, 11:45 AM.

                  Comment


                  • #10
                    sure Just ran into this problem.

                    Comment


                    • #11
                      I had the same issue and i added the following dependency

                      Code:
                      <dependency>
                        <groupId>org.springframework.ws</groupId>
                        <artifactId>spring-ws</artifactId>
                        <version>1.5.8</version>
                        <type>pom</type>
                      </dependency>
                      I got the same error again then and i randomly set the TTL value to 10000000000 ms and its working now.

                      I guess wss4j 1.5.8 still has the issue with Timestamp

                      Comment


                      • #12
                        Heya, a bit late but even with 1.5.9 version this issue remains: you just can't use the "<artifactId>spring-ws</artifactId>" element as Maven start to whine that it can't resolve it. It's too bad these things are not so clearly documented, but I've managed to solve it (for me) by describing multiple artifacts.

                        Here's my piece from my pom with spring.version set on 1.5.9:

                        Code:
                        <!-- Spring framework -->
                        <dependency>
                        	<groupId>org.springframework.ws</groupId>
                        	<artifactId>spring-ws-core</artifactId>
                        	<version>${spring.version}</version>
                        </dependency>
                        <dependency>
                        	<groupId>org.springframework.ws</groupId>
                        	<artifactId>spring-oxm</artifactId>
                        	<version>${spring.version}</version>
                        </dependency>
                        <dependency>
                        	<groupId>org.springframework.ws</groupId>
                        	<artifactId>spring-ws-core-tiger</artifactId>
                        	<version>${spring.version}</version>
                        </dependency>
                        I needed Spring-ws just for annotations, for which I required the spring-ws-core-tiger artifactId. So, if you require other specific libraries/artifacts and the piece above doesn't work for you, you might want to try the other artificts (you can find those in the maven repo).

                        Still, I don't get it why spring-ws doesn't work as there is a JAR file present in the maven repo (1.5.9-all.jar).

                        Comment

                        Working...
                        X