PDA

View Full Version : Spring Integration and Maven



SimonT
Jul 8th, 2008, 05:02 PM
I am trying to add Spring Integration M4 dependency to a project using Maven 2 but I just can't seem to find a way to configure the repository and dependency properly.

I have tried to no avail, adding to my pom.xml file:

<repository>
<id>spring-milestone</id>
<name>Spring Portfolio Milestone Repository</name>
<url>s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>

* Please add an h t t p : / / in front of the s3 url. I couldn't add it because for some reason the forum is preventing from linking to other urls... *


<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration</artifactId>
<version>1.0.0.m4</version>
</dependency>

Looking at the s3 repository at:

h t t p : / / s3browse.com/explore/maven.springframework.org/milestone/org/springframework/integration/

I see that there is an spring-integration-core component but there are only artifacts up to version 1.0.0M3 but no M4.

I found on a post (but couldn't find the reference any more) that 1.0.0M4 could now be found on SpringSource repository

h t t p : / / w w w .springsource.com/repository/app/

I searched but found no trace of anything related to Spring Integration.

Could you please tell me how to configure my pom.xml to be able to add the spring integration dependency? Thanks,


Simon

davsclaus
Jul 9th, 2008, 02:39 AM
This is from my pom.xml that works

<siVersion>1.0.0.M4</siVersion>

<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration</artifactId>
<version>${siVersion}</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration.adapter</artifactId>
<version>${siVersion}</version>
</dependency>


<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>
<repository>
<id>com.springsource.repository.bundles.external</id>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>

SimonT
Jul 9th, 2008, 09:14 AM
It works, Thanks! By the way, do you know how to browse the springSource Milestone repository (using the web, for example)? How did you found out about those reopsitories?

Simon

haumic
Jul 29th, 2008, 04:47 AM
Does anybody have a complete POM, working without local dependencies?

Michael

AdrianL
Jul 29th, 2008, 10:39 AM
This no longer works for me either. Does Spring integration post news about moving repositories or allow repository browsing in any way? This worked fine until recently. Does this have to do with the move to M5 or did they just restructure the repositories or what?

Dave Syer
Aug 4th, 2008, 05:39 AM
Spring Integration releases and snapshots are deployed to our S3 repositories (the ones that back the SpringSource Enterprise Bundle Repository). You can browse the full releases using our Bundle Repository application (http://www.springsource.com/repository/app), but since Integration is not GA yet you have to go through the S3Browse application (http://s3browse.com/explore/repository.springsource.com/maven/bundles/). There is a "milestone" subdir there where you will find M5, and a "snapshot" subdir where the nightly builds go. There were some issues with the snapshot deployment in M4 and M5, but they seem to be working fine now.

Keep posting here and in JIRA if there are problems.

Here's my POM config for snapshot usage:



<repositories>
<repository>
<id>springsource-external</id>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
<repository>
<id>springsource-snapshot</id>
<url>http://repository.springsource.com/maven/bundles/snapshot</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration</artifactId>
<version>1.0.0.CI-SNAPSHOT</version>
</dependencies>


Change "snapshot" to "milestone" to get the milestone releases, etc.

janstey
Aug 4th, 2008, 08:16 AM
1.0.0.M5 was working for a while now. Doesn't work today though. I browsed to find out what versions were available and it seems all spring integration milestone releases have been removed! See:

s3browse.com/explore/repository.springsource.com/maven/bundles/milestone/org/springframework/integration

janstey
Aug 4th, 2008, 11:09 AM
Version 1.0.0.M5 is back now. Thanks to who ever fixed this!

Mark Fisher
Aug 4th, 2008, 11:12 AM
Thank you for bringing this to our attention. Sorry for the inconvenience.

-Mark

rainman
Aug 31st, 2008, 01:49 AM
i am unable to download spring integration milestone releases from s3browse using maven. Have a checksum failure on the download of any milestone release. The jars and poms downloaded are 5k each and are invalid. The pom seems to be an html page. I have used the following repository and dependency configuration


<repositories>
<repository>
<id>springsource-external</id>
<url>http://s3browse.com/explore/maven.springframework.org/milestone/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>org.springframework.integration</artifactId>
<version>1.0.0.m5</version>
</dependency>
</dependencies>

Has anyone encountered this before?

Mark Fisher
Aug 31st, 2008, 09:14 AM
It's a very minor thing, but the version should have an uppercase M: <version>1.0.0.M5</version>

rainman
Aug 31st, 2008, 11:14 PM
apologies for the typo..
had tried with

<version>1.0.0.M5</version>
but gettting the same error.

alca
Sep 1st, 2008, 03:31 AM
It works for me, except that org.springframework.integration.adapter does not seem to be present in the repository!

rainman
Sep 1st, 2008, 06:13 AM
could you please post in your repository? because i can browse ,find,download the integration.adapter jars and integration jars without problems using a normal web browser.
It is only through maven i have the error.

Mark Fisher
Sep 1st, 2008, 07:40 AM
I just looked at your configuration again and noticed that the repository URL is incorrect. The "s3browse" URL is for browsing the repository only. For the maven repository configuration, try this instead:


<repository>
<id>springsource-milestone</id>
<url>http://repository.springsource.com/maven/bundles/milestone</url>
</repository>

alca
Sep 1st, 2008, 09:28 AM
It works! Thanks a lot.

rainman
Sep 1st, 2008, 11:33 PM
thanks a million.