Announcement Announcement Module
Collapse
No announcement yet.
Maven2 and SpringIntegration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maven2 and SpringIntegration

    Hi All,

    I'm using maven2 for my project. I'm using the repositories:

    I want to use spring ws also, but the artifacts are named diferently as integration so I have duplicated all the spring core packages.

    Here my pom:

    Code:
    <repositories>		 
    		<repository>
    			<id>com.springsource.repository.bundles.external </id>
    			<url>
    			http://repository.springsource.com/maven/bundles/external
    		</url>
    		</repository>
    		<repository>
    			<id>com.springsource.repository.bundles.milestone</id>
    			<url>
    		http://repository.springsource.com/maven/bundles/milestone
    		</url>
    		</repository>
    		<repository>
    			<id>com.springsource.repository.bundles.release</id>
    			<url>
    		http://repository.springsource.com/maven/bundles/release
    		</url>
    		</repository>
    	</repositories>
    	<dependencies>
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-ws-core</artifactId>
    			<version>1.5.5</version>			
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework.ws</groupId>
    			<artifactId>spring-oxm-tiger</artifactId>
    			<version>1.5.5</version>
    		</dependency>
    		
    		<dependency>
    			<groupId>org.springframework.integration</groupId>
    			<artifactId>org.springframework.integration</artifactId>
    			<version>1.0.0.RC2</version>
    		</dependency>
    		 
    		<dependency>
    			<groupId>org.springframework.integration</groupId>
    			<artifactId>org.springframework.integration.adapter</artifactId>
    			<version>1.0.0.RC2</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.integration</groupId>
    			<artifactId>org.springframework.integration.jms</artifactId>
    			<version>1.0.0.RC2</version>
    		</dependency>
    		<dependency>
    			<groupId>javax.transaction</groupId>
    			<artifactId>jta</artifactId>
    			<version>1.1</version>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.11</version>
    			<scope>compile</scope>
    		</dependency>
    		<dependency>
    			<groupId>aspectj</groupId>
    			<artifactId>aspectjweaver</artifactId>
    			<version>1.5.4</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-dbcp</groupId>
    			<artifactId>commons-dbcp</artifactId>
    			<version>1.2.2</version>
    		</dependency>
    		<dependency>
    			<groupId>org.apache.activemq</groupId>
    			<artifactId>activemq-all</artifactId>
    			<version>5.1.0</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-pool</groupId>
    			<artifactId>commons-pool</artifactId>
    			<version>20030825.183949</version>
    		</dependency>
    		<dependency>
    			<groupId>commons-collections</groupId>
    			<artifactId>commons-collections</artifactId>
    			<version>20040616</version>
    		</dependency>
    		
    	</dependencies>
    Which repository have I to use for not having duplicated the packages?

  • #2
    Looks like you are mixing artifacts from repo1 and the SpringSource repository. If understand correctly I would recommend you take Spring WS from the SpringSource repo as well. This should ensure transitive dependencies do not cause duplication.

    Code:
    <dependency>  
        <groupId>org.springframework.ws</groupId>
        <artifactId>org.springframework.ws</artifactId>
        <version>1.5.5.A</version>
    </dependency>

    Comment


    • #3
      Thanks, I couldn't find the artifact on the spring repo

      Does the ws artifact have this one?
      Code:
      <dependency> <groupId>org.springframework.ws</groupId>
      			<artifactId>spring-oxm-tiger</artifactId> <version>1.5.5</version>
      			</dependency>
      If not, which is the correct artifact on the spring repo?

      Thanks in advance.

      Comment


      • #4
        Code:
        <dependency>  
            <groupId>org.springframework.ws</groupI>
            <artifactId>org.springframework.oxm.java5</artifactId>      
            <version>1.5.5.A</version>
        </dependency>

        You can search the repo here

        Comment


        • #5
          Thanks 4 everything

          Comment

          Working...
          X