Repository: beam Updated Branches: refs/heads/master 9541f8fcc -> 2f96bc326
Java examples: move shade plugin into default lifecycle This helps users running the examples on runner that require the fat/bundled jar. Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/0360b1b3 Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/0360b1b3 Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/0360b1b3 Branch: refs/heads/master Commit: 0360b1b3be6190d36e1af1d2d077251ef60106d8 Parents: 90c8094 Author: Davor Bonaci <[email protected]> Authored: Sun Mar 5 16:43:48 2017 -0800 Committer: Davor Bonaci <[email protected]> Committed: Sun Mar 5 18:01:32 2017 -0800 ---------------------------------------------------------------------- .../main/resources/archetype-resources/pom.xml | 64 ++++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/0360b1b3/sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/pom.xml b/sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/pom.xml index 6a12324..0ed23fd 100644 --- a/sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/pom.xml +++ b/sdks/java/maven-archetypes/examples/src/main/resources/archetype-resources/pom.xml @@ -73,6 +73,38 @@ </dependency> </dependencies> </plugin> + + <!-- + Configures `mvn package` to produce a bundled jar ("fat jar") for runners + that require this for job submission to a cluster. + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>2.4.1</version> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <finalName>${project.artifactId}-bundled-${project.version}</finalName> + <filters> + <filter> + <artifact>*:*</artifact> + <excludes> + <exclude>META-INF/LICENSE</exclude> + <exclude>META-INF/*.SF</exclude> + <exclude>META-INF/*.DSA</exclude> + <exclude>META-INF/*.RSA</exclude> + </excludes> + </filter> + </filters> + </configuration> + </execution> + </executions> + </plugin> </plugins> <pluginManagement> @@ -85,38 +117,6 @@ <cleanupDaemonThreads>false</cleanupDaemonThreads> </configuration> </plugin> - - <!-- - Configures `mvn package` to produce a bundled jar ("fat jar") for runners - that require this for job submission to a cluster. - --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-shade-plugin</artifactId> - <version>2.4.1</version> - <executions> - <execution> - <phase>package</phase> - <goals> - <goal>shade</goal> - </goals> - <configuration> - <finalName>${project.artifactId}-bundled-${project.version}</finalName> - <filters> - <filter> - <artifact>*:*</artifact> - <excludes> - <exclude>META-INF/LICENSE</exclude> - <exclude>META-INF/*.SF</exclude> - <exclude>META-INF/*.DSA</exclude> - <exclude>META-INF/*.RSA</exclude> - </excludes> - </filter> - </filters> - </configuration> - </execution> - </executions> - </plugin> </plugins> </pluginManagement> </build>
