| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <artifactId>storm</artifactId> |
| <groupId>org.apache.storm</groupId> |
| <version>0.9.2-incubating</version> |
| </parent> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>storm-core</artifactId> |
| <packaging>jar</packaging> |
| <name>Storm Core</name> |
| <description>Storm Core Java API and Clojure implementation.</description> |
| |
| <properties> |
| <worker-launcher.conf.dir>/etc/storm</worker-launcher.conf.dir> |
| <worker-launcher.additional_cflags></worker-launcher.additional_cflags> |
| </properties> |
| |
| <dependencies> |
| <!--clojure--> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>clojure</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>clj-time</groupId> |
| <artifactId>clj-time</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>compojure</groupId> |
| <artifactId>compojure</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>hiccup</groupId> |
| <artifactId>hiccup</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>ring</groupId> |
| <artifactId>ring-devel</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>ring</groupId> |
| <artifactId>ring-jetty-adapter</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>tools.logging</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>math.numeric-tower</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>tools.cli</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>tools.nrepl</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>clojure-complete</groupId> |
| <artifactId>clojure-complete</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.clojars.runa</groupId> |
| <artifactId>conjure</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>clojure-contrib</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.clojure</groupId> |
| <artifactId>data.codec</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!--java--> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-exec</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-lang</groupId> |
| <artifactId>commons-lang</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>0.7.0</version> |
| <scope>compile</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-framework</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.googlecode.json-simple</groupId> |
| <artifactId>json-simple</artifactId> |
| </dependency> |
| |
| |
| <dependency> |
| <groupId>com.twitter</groupId> |
| <artifactId>carbonite</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.yaml</groupId> |
| <artifactId>snakeyaml</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.httpcomponents</groupId> |
| <artifactId>httpclient</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.googlecode.disruptor</groupId> |
| <artifactId>disruptor</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.jgrapht</groupId> |
| <artifactId>jgrapht-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>log4j-over-slf4j</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.clojars.runa</groupId> |
| <artifactId>conjure</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.1</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <sourceDirectory>src/jvm</sourceDirectory> |
| <testSourceDirectory>test/jvm</testSourceDirectory> |
| <resources> |
| <resource> |
| <directory>../conf</directory> |
| </resource> |
| <resource> |
| <directory>../</directory> |
| <targetPath>META-INF</targetPath> |
| <includes> |
| <!-- |
| storm-core doesn't package jquery, etc. so the stock |
| apache LICENSE file is okay. We do want our version |
| of the NOTICE file, however |
| --> |
| <include>NOTICE</include> |
| </includes> |
| </resource> |
| |
| </resources> |
| <testResources> |
| <testResource> |
| <directory>src/dev</directory> |
| </testResource> |
| <testResource> |
| <directory>test/resources</directory> |
| </testResource> |
| </testResources> |
| <plugins> |
| <plugin> |
| <groupId>com.theoryinpractise</groupId> |
| <artifactId>clojure-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <sourceDirectories> |
| <sourceDirectory>src/clj</sourceDirectory> |
| </sourceDirectories> |
| <testSourceDirectories> |
| <testSourceDirectory>test/clj</testSourceDirectory> |
| </testSourceDirectories> |
| <warnOnReflection>false</warnOnReflection> |
| <copyDeclaredNamespaceOnly>true</copyDeclaredNamespaceOnly> |
| <copiedNamespaces> |
| <copiedNamespace>none</copiedNamespace> |
| </copiedNamespaces> |
| </configuration> |
| <executions> |
| <execution> |
| <id>compile-clojure</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>test-clojure</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test-with-junit</goal> |
| </goals> |
| <configuration> |
| <!-- argLine is set by JaCoCo for code coverage --> |
| <vmargs>${argLine} ${test.extra.args}</vmargs> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| <configuration> |
| <reportsDirectories> |
| <file>${project.build.directory}/test-reports</file> |
| </reportsDirectories> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>2.2</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> |
| <promoteTransitiveDependencies>false</promoteTransitiveDependencies> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <minimizeJar>false</minimizeJar> |
| <artifactSet> |
| <includes> |
| <include>org.apache.thrift:*</include> |
| <include>org.apache.storm:*</include> |
| </includes> |
| </artifactSet> |
| |
| <relocations> |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>org.apache.thrift7</shadedPattern> |
| </relocation> |
| </relocations> |
| <transformers> |
| <transformer implementation="org.apache.storm.maven.shade.clojure.ClojureTransformer" /> |
| </transformers> |
| <filters> |
| <filter> |
| <artifact>org.apache.thrift:*</artifact> |
| <excludes> |
| <exclude>META-INF/LICENSE.txt</exclude> |
| <exclude>META-INF/NOTICE.txt</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.storm</groupId> |
| <artifactId>maven-shade-clojure-transformer</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| <includeScope>runtime</includeScope> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.2.1</version> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <!-- avoid warning about recursion --> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>coverage</id> |
| <activation><activeByDefault>true</activeByDefault></activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources><!-- Allows JaCoCo to find the clojure source code --> |
| <source>src/clj</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.7</version> |
| <executions> |
| <execution> |
| <id>pre-test-jacoco-clean</id> |
| <phase>process-test-classes</phase> |
| <configuration> |
| <tasks> |
| <delete file="target\jacoco.exec" /> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.6.1.201212231917</version> |
| <executions> |
| <execution> |
| <id>prepare-agent</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| <configuration> |
| <append>true</append> |
| <excludes> |
| <exclude>backtype/storm/metric/api/IMetricsConsumer$DataPointFieldAccess</exclude> |
| <exclude>backtype/storm/metric/api/IMetricsConsumer$TaskInfoFieldAccess</exclude> |
| <exclude>backtype/storm/testing/TestSerObjectFieldAccess</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>report</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| <configuration> |
| <excludes> |
| <exclude>backtype/storm/generated/*</exclude> <!--Thrift generated code--> |
| </excludes> |
| <includes> |
| <include>backtype/*/*/*/*</include> |
| <include>backtype/*/*/*</include> |
| <include>backtype/*/*</include> |
| <include>backtype/*</include> |
| <include>zilch/*</include> |
| <include>storm/*/*/*/*</include> |
| <include>storm/*/*/*</include> |
| <include>storm/*/*</include> |
| <include>storm/*</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>native</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.2.1</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals><goal>exec</goal></goals> |
| </execution> |
| </executions> |
| <configuration> |
| <executable>sh</executable> |
| <arguments> |
| <argument>-c</argument> |
| <argument>mkdir -p ${project.build.directory}/; cp -rufv ${basedir}/src/native/ ${project.build.directory}/</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>make-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <phase>compile</phase> |
| <goals> |
| <goal>autoreconf</goal> |
| <goal>configure</goal> |
| <goal>make-install</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <!-- autoreconf settings --> |
| <workDir>${project.build.directory}/native/worker-launcher</workDir> |
| <arguments> |
| <argument>-i</argument> |
| </arguments> |
| |
| <!-- configure settings --> |
| <configureEnvironment> |
| <property> |
| <name>CFLAGS</name> |
| <value>-DEXEC_CONF_DIR=${worker-launcher.conf.dir} ${worker-launcher.additional_cflags}</value> |
| </property> |
| </configureEnvironment> |
| <configureWorkDir>${project.build.directory}/native/worker-launcher</configureWorkDir> |
| <prefix>/usr/local</prefix> |
| |
| <!-- configure & make settings --> |
| <destDir>${project.build.directory}/native/target</destDir> |
| |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| </profile> |
| </profiles> |
| |
| </project> |