| <?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> | |
| <parent> | |
| <artifactId>malhar-demos</artifactId> | |
| <groupId>com.datatorrent</groupId> | |
| <version>2.1.0-SNAPSHOT</version> | |
| </parent> | |
| <groupId>com.datatorrent</groupId> | |
| <version>2.1.0-SNAPSHOT</version> | |
| <artifactId>echoserver</artifactId> | |
| <packaging>jar</packaging> | |
| <!-- change these to the appropriate values --> | |
| <name>EchoServer Demo</name> | |
| <description>A demo server that echos data sent by a network client back to it</description> | |
| <properties> | |
| <!-- change this if you desire to use a different version of DataTorrent --> | |
| <datatorrent.version>2.1.0-SNAPSHOT</datatorrent.version> | |
| <datatorrent.apppackage.classpath>lib/*.jar</datatorrent.apppackage.classpath> | |
| </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-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> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <!-- add your dependencies here --> | |
| <dependency> | |
| <groupId>com.datatorrent</groupId> | |
| <artifactId>malhar-library</artifactId> | |
| <version>${datatorrent.version}</version> | |
| <!-- | |
| If you know that your application doesn't need the transitive dependencies that are pulled in by malhar-library, | |
| Uncomment the following to reduce the size of your app package. | |
| --> | |
| <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> |