Maven pom for Spring Integration samples
How many poor suckers have wasted time configuring Maven to run the examples for the Spring Integration project? The sources are in a jar included in the download. I’d post a complete maven project but I don’t want to hear from any lawyers.
Here is the POM that I slapped together.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
<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.integration</groupId> <artifactId>samples</artifactId> <packaging>jar</packaging> <version>1.0.0.RC2</version> <name>spring integration samples</name> <url>http://www.springsource.org/spring-integration</url> <description>spring integration samples</description> <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> <repository> <id>springsource-milestone</id> <url>http://repository.springsource.com/maven/bundles/milestone</url> </repository> <repository> <id>springsource-release</id> <url>http://repository.springsource.com/maven/bundles/release</url> </repository> <repository> <id>apache-maven-snapshots</id> <name>Apache snapshot repository</name> <url>http://svn.apache.org/maven-snapshot-repository/</url> <layout>default</layout> </repository> </repositories> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j.version}</version> <type>jar</type> <!-- these are compile time dependencies for log4j and not us. Since we're not compiling log4j just say no thanks. --> <exclusions> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> </exclusion> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </exclusion> <exclusion> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>org.springframework.integration</artifactId> <version>${spring.integration.version}</version> </dependency> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>org.springframework.integration.adapter</artifactId> <version>${spring.integration.version}</version> </dependency> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>org.springframework.integration.ws</artifactId> <version>${spring.integration.version}</version> </dependency> <dependency> <groupId>org.springframework.integration</groupId> <artifactId>org.springframework.integration.stream</artifactId> <version>${spring.integration.version}</version> </dependency> </dependencies> <properties> <spring.integration.version>1.0.0.RC2</spring.integration.version> <!-- the tdeps specify this version. So, here it is if you want more --> <spring.version>2.5.6</spring.version> <log4j.version>1.2.15</log4j.version> </properties> </project> |
ah ah 😀
I’m one of those many that did ! Very useful thanks 😀