| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright 2022 Google LLC | |
| Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
| https://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
| <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your | |
| option. This file may not be copied, modified, or distributed | |
| except according to those terms. | |
| --> | |
| <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.example</groupId> | |
| <artifactId>beam-java-starter</artifactId> | |
| <version>1</version> | |
| <properties> | |
| <maven.compiler.source>17</maven.compiler.source> | |
| <maven.compiler.target>17</maven.compiler.target> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| </properties> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.14.1</version> | |
| </plugin> | |
| <!-- Run the app through mvn. --> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>3.6.2</version> | |
| <configuration> | |
| <mainClass>com.example.App</mainClass> | |
| <cleanupDaemonThreads>false</cleanupDaemonThreads> | |
| </configuration> | |
| </plugin> | |
| <!-- JUnit 4 testing integration. --> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>3.5.3</version> | |
| </plugin> | |
| <!-- Package self-contained jar file. --> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>3.6.0</version> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <archive> | |
| <manifest> | |
| <mainClass>com.example.App</mainClass> | |
| </manifest> | |
| </archive> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <!-- App dependencies --> | |
| <dependency> | |
| <groupId>org.apache.beam</groupId> | |
| <artifactId>beam-sdks-java-core</artifactId> | |
| <version>2.78.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.beam</groupId> | |
| <artifactId>beam-runners-direct-java</artifactId> | |
| <version>2.78.0</version> | |
| <scope>runtime</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-jdk14</artifactId> | |
| <version>2.0.16</version> | |
| </dependency> | |
| <!-- Test dependencies --> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.13.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.hamcrest</groupId> | |
| <artifactId>hamcrest</artifactId> | |
| <version>3.0</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| </project> |