make examples produce a shaded jar
Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/3411bc7d Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/3411bc7d Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/3411bc7d Branch: refs/heads/master Commit: 3411bc7d296c948e3ca6fc1a02ef8a118df39e65 Parents: 8b690e6 Author: P. Taylor Goetz <ptgo...@gmail.com> Authored: Thu Apr 2 12:20:59 2015 -0400 Committer: P. Taylor Goetz <ptgo...@gmail.com> Committed: Thu Apr 2 12:20:59 2015 -0400 ---------------------------------------------------------------------- flux-examples/pom.xml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/3411bc7d/flux-examples/pom.xml ---------------------------------------------------------------------- diff --git a/flux-examples/pom.xml b/flux-examples/pom.xml index 29a2e62..63bc312 100644 --- a/flux-examples/pom.xml +++ b/flux-examples/pom.xml @@ -15,7 +15,8 @@ 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"> +<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> @@ -32,4 +33,47 @@ <name>flux-examples</name> <url>https://github.com/ptgoetz/flux</url> + <dependencies> + <dependency> + <groupId>com.github.ptgoetz</groupId> + <artifactId>flux-core</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>com.github.ptgoetz</groupId> + <artifactId>flux-wrappers</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>1.4</version> + <configuration> + <createDependencyReducedPom>true</createDependencyReducedPom> + </configuration> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <transformers> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> + <transformer + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> + <mainClass>org.apache.storm.flux.Flux</mainClass> + </transformer> + </transformers> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> </project>