| <?xml version="1.0" encoding="UTF-8"?> |
| <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> |
| |
| <groupId>com.datatorrent</groupId> |
| <version>1.0-SNAPSHOT</version> |
| <artifactId>dimensions-demo</artifactId> |
| <packaging>jar</packaging> |
| |
| <name>DataTorrent Dimensions Demos</name> |
| <description>DataTorrent demo applications that demonstrates how DataTorrent is used to build applications for massive multi-dimensional computations with very low latency.</description> |
| |
| <parent> |
| <groupId>com.datatorrent</groupId> |
| <artifactId>malhar-demos</artifactId> |
| <version>2.0.0-RC8</version> |
| </parent> |
| |
| <properties> |
| <!-- change this if you desire to use a different version of DataTorrent --> |
| <datatorrent.version>2.0.0-RC8</datatorrent.version> |
| <datatorrent.apppackage.classpath>lib/*.jar</datatorrent.apppackage.classpath> |
| <skipTests>true</skipTests> |
| </properties> |
| |
| <!-- repository to provide the DataTorrent artifacts --> |
| <repositories> |
| <repository> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| <id>Datatorrent-Releases</id> |
| <name>DataTorrent Release Repository</name> |
| <url>https://www.datatorrent.com/maven/content/repositories/releases/</url> |
| </repository> |
| <repository> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| <id>DataTorrent-Snapshots</id> |
| <name>DataTorrent Early Access Program Snapshot Repository</name> |
| <url>https://www.datatorrent.com/maven/content/repositories/snapshots/</url> |
| </repository> |
| </repositories> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.17</version> |
| <configuration> |
| <skipTests>${skipTests}</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-eclipse-plugin</artifactId> |
| <version>2.9</version> |
| <configuration> |
| <downloadSources>true</downloadSources> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>2.3.2</version> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| <source>1.6</source> |
| <target>1.6</target> |
| <debug>true</debug> |
| <optimize>false</optimize> |
| <showDeprecation>true</showDeprecation> |
| <showWarnings>true</showWarnings> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>2.8</version> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>target/deps</outputDirectory> |
| <includeScope>runtime</includeScope> |
| </configuration> |
| </execution> |
| <execution> |
| <id>unpack</id> |
| <phase>package</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>${project.artifactId}</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <includes>META-INF/MANIFEST.MF</includes> |
| <outputDirectory>target</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>app-package-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| <configuration> |
| <finalName>DTApp-${project.artifactId}-${project.version}</finalName> |
| <appendAssemblyId>false</appendAssemblyId> |
| <descriptors> |
| <descriptor>src/assemble/appPackage.xml</descriptor> |
| </descriptors> |
| <archiverConfig> |
| <defaultDirectoryMode>0755</defaultDirectoryMode> |
| </archiverConfig> |
| <archive> |
| <manifestEntries> |
| <Class-Path>${datatorrent.apppackage.classpath}</Class-Path> |
| <DT-Engine-Version>${datatorrent.version}</DT-Engine-Version> |
| <DT-App-Package-Name>${project.artifactId}</DT-App-Package-Name> |
| <DT-App-Package-Version>${project.version}</DT-App-Package-Version> |
| <DT-App-Package-Display-Name>${project.name}</DT-App-Package-Display-Name> |
| <DT-App-Package-Description>${project.description}</DT-App-Package-Description> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Publish tests jar --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| <phase>package</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- create resource directory for xml javadoc--> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>createJavadocDirectory</id> |
| <phase>generate-resources</phase> |
| <configuration> |
| <tasks> |
| <delete dir="${project.build.directory}/generated-resources/xml-javadoc"/> |
| <mkdir dir="${project.build.directory}/generated-resources/xml-javadoc"/> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- generate javdoc --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <!-- generate xml javadoc --> |
| <execution> |
| <id>xml-doclet</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>javadoc</goal> |
| </goals> |
| <configuration> |
| <doclet>com.github.markusbernhardt.xmldoclet.XmlDoclet</doclet> |
| <additionalparam>-d ${project.build.directory}/generated-resources/xml-javadoc -filename ${project.artifactId}-${project.version}-javadoc.xml</additionalparam> |
| <useStandardDocletOptions>false</useStandardDocletOptions> |
| <docletArtifact> |
| <groupId>com.github.markusbernhardt</groupId> |
| <artifactId>xml-doclet</artifactId> |
| <version>1.0.4</version> |
| </docletArtifact> |
| </configuration> |
| </execution> |
| <!-- generate default javadoc jar with custom tags --> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <skip>true</skip> |
| <tags> |
| <tag> |
| <name>customTag1</name> |
| <placement>a</placement> |
| <head>Custom Tag One:</head> |
| </tag> |
| <tag> |
| <name>customTag2</name> |
| <placement>a</placement> |
| <head>Custom Tag two:</head> |
| </tag> |
| <tag> |
| <name>customTag3</name> |
| <placement>a</placement> |
| <head>Custom Tag three:</head> |
| </tag> |
| </tags> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- Transform xml javadoc to stripped down version containing only class/interface comments and tags--> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>xml-maven-plugin</artifactId> |
| <version>1.0</version> |
| <executions> |
| <execution> |
| <id>transform-xmljavadoc</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>transform</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <transformationSets> |
| <transformationSet> |
| <dir>${project.build.directory}/generated-resources/xml-javadoc</dir> |
| <includes> |
| <include>${project.artifactId}-${project.version}-javadoc.xml</include> |
| </includes> |
| <stylesheet>XmlJavadocCommentsExtractor.xsl</stylesheet> |
| <outputDir>${project.build.directory}/generated-resources/xml-javadoc</outputDir> |
| </transformationSet> |
| </transformationSets> |
| </configuration> |
| </plugin> |
| <!-- copy xml javadoc to class jar --> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${basedir}/target/classes</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${project.build.directory}/generated-resources/xml-javadoc</directory> |
| <includes> |
| <include>${project.artifactId}-${project.version}-javadoc.xml</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <!-- add your dependencies here --> |
| <dependency> |
| <groupId>redis.clients</groupId> |
| <artifactId>jedis</artifactId> |
| <version>2.2.1</version> |
| </dependency> |
| <dependency> |
| <groupId>net.sf.trove4j</groupId> |
| <artifactId>trove4j</artifactId> |
| <version>3.0.3</version> |
| </dependency> |
| <dependency> |
| <groupId>joda-time</groupId> |
| <artifactId>joda-time</artifactId> |
| <version>2.3</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka_2.10</artifactId> |
| <version>0.8.1.1</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.datatorrent</groupId> |
| <artifactId>malhar-library</artifactId> |
| <version>${datatorrent.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <scope>test</scope> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>malhar-library</artifactId> |
| <version>${datatorrent.version}</version> |
| <classifier>tests</classifier> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>malhar-contrib</artifactId> |
| <version>${datatorrent.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>malhar-contrib</artifactId> |
| <version>${datatorrent.version}</version> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>*</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.datatorrent</groupId> |
| <artifactId>dt-engine</artifactId> |
| <version>${datatorrent.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.10</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| </project> |