|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <groupId>storm.bfd</groupId> |
| 6 | + <artifactId>stormdemo</artifactId> |
| 7 | + <version>1.0</version> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <properties> |
| 11 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 12 | + </properties> |
| 13 | + <repositories> |
| 14 | + <repository> |
| 15 | + <id>clojars.org</id> |
| 16 | + <url>http://clojars.org/repo</url> |
| 17 | + </repository> |
| 18 | + <repository> |
| 19 | + <id>maven-central-repo</id> |
| 20 | + <url>http://repo1.maven.org/maven2/</url> |
| 21 | + </repository> |
| 22 | + </repositories> |
| 23 | + |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>org.apache.storm</groupId> |
| 27 | + <artifactId>storm-core</artifactId> |
| 28 | + <version>0.9.4</version> |
| 29 | + <scope>provided</scope> |
| 30 | + </dependency> |
| 31 | + <dependency> |
| 32 | + <groupId>org.slf4j</groupId> |
| 33 | + <artifactId>slf4j-api</artifactId> |
| 34 | + <version>1.7.13</version> |
| 35 | + </dependency> |
| 36 | + <dependency> |
| 37 | + <groupId>org.apache.storm</groupId> |
| 38 | + <artifactId>storm-kafka</artifactId> |
| 39 | + <version>0.9.4</version> |
| 40 | + </dependency> |
| 41 | + <dependency> |
| 42 | + <groupId>org.apache.kafka</groupId> |
| 43 | + <artifactId>kafka_2.10</artifactId> |
| 44 | + <version>0.8.2.1</version> |
| 45 | + <exclusions> |
| 46 | + <exclusion> |
| 47 | + <groupId>org.apache.zookeeper</groupId> |
| 48 | + <artifactId>zookeeper</artifactId> |
| 49 | + </exclusion> |
| 50 | + <exclusion> |
| 51 | + <groupId>log4j</groupId> |
| 52 | + <artifactId>log4j</artifactId> |
| 53 | + </exclusion> |
| 54 | + </exclusions> |
| 55 | + </dependency> |
| 56 | + </dependencies> |
| 57 | + |
| 58 | + <build> |
| 59 | + <sourceDirectory>src</sourceDirectory> |
| 60 | + <resources> |
| 61 | + <resource> |
| 62 | + <directory>src/python</directory> |
| 63 | + </resource> |
| 64 | + </resources> |
| 65 | + <plugins> |
| 66 | + <plugin> |
| 67 | + <artifactId>maven-assembly-plugin</artifactId> |
| 68 | + <configuration> |
| 69 | + <descriptorRefs> |
| 70 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 71 | + </descriptorRefs> |
| 72 | + <archive> |
| 73 | + <manifest> |
| 74 | + <mainClass></mainClass> |
| 75 | + </manifest> |
| 76 | + </archive> |
| 77 | + </configuration> |
| 78 | + <executions> |
| 79 | + <execution> |
| 80 | + <id>make-assembly</id> |
| 81 | + <phase>package</phase> |
| 82 | + <goals> |
| 83 | + <goal>single</goal> |
| 84 | + </goals> |
| 85 | + </execution> |
| 86 | + </executions> |
| 87 | + |
| 88 | + </plugin> |
| 89 | + |
| 90 | + <plugin> |
| 91 | + <groupId>org.apache.maven.plugins</groupId> |
| 92 | + <artifactId>maven-compiler-plugin</artifactId> |
| 93 | + <configuration> |
| 94 | + <source>1.7</source> |
| 95 | + <target>1.7</target> |
| 96 | + </configuration> |
| 97 | + </plugin> |
| 98 | + </plugins> |
| 99 | + </build> |
| 100 | +</project> |
0 commit comments