Maven Configuration for Spring Integration

Releases | Mark Fisher | November 30, 2010 | ...

Dependencies

Add the following within the <dependencies> section of your POM:

<dependency>
   <groupId>org.springframework.integration</groupId>
   <artifactId>spring-integration-core</artifactId>
   <version>2.2.3.RELEASE</version>
</dependency>

That will make the "spring-integration-core" module available to your project (the "core" includes the Messaging API and Enterprise Integration Patterns support). If you want to use any of the adapters or support for XML, Groovy, and/or Spring Security, you can instead add one or more of the following as the "artifactId" value:

  • spring-integration-event
  • spring-integration-feed
  • spring-integration-file
  • spring-integration-ftp
  • spring-integration-groovy
  • spring-integration-http
  • spring-integration-ip
  • spring-integration-jdbc
  • spring-integration-jms
  • spring-integration-jmx
  • spring-integration-mail
  • spring-integration-rmi
  • spring-integration-security
  • spring-integration-sftp
  • spring-integration-stream
  • spring-integration-test
  • spring-integration-twitter
  • spring-integration-ws
  • spring-integration-xml
  • spring-integration-xmpp

NOTE: Any of the modules listed above will bring the "core" module in as a transitive dependency, so you do not need to include it in the POM if you are using at least one from that list. Also, some dependencies, such as Jackson for JSON mapping, are not pulled in as transitive dependencies so you will need to add these to your POM (this also applies if you are using other build systems such as gradle).


Repositories

The artifacts are available via the Maven central repository, but you can also add the SpringSource repository within the <repositories> section of your POM:

<repository>
   <id>repository.springframework.maven.release</id>
   <name>Spring Framework Maven Release Repository</name>
   <url>http://maven.springframework.org/release</url>
</repository>

If you want to use Milestone or Snapshot dependencies instead-of or in-addition-to the Release dependencies, then you can provide the following URLs, respectively:

  • http://maven.springframework.org/milestone
  • http://maven.springframework.org/snapshot

Get the Spring newsletter

Thank you for your interest. Someone will get back to you shortly.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all