Adding file header and changing to shade plugin.
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/04236cfb Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/04236cfb Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/04236cfb Branch: refs/heads/master Commit: 04236cfb573f067f8870dcc3936911c306ae10a2 Parents: 2db2ee8 Author: Aaron McCurry <[email protected]> Authored: Sun Jan 11 23:21:07 2015 -0500 Committer: Aaron McCurry <[email protected]> Committed: Sun Jan 11 23:21:07 2015 -0500 ---------------------------------------------------------------------- contrib/blur-spark/pom.xml | 15 +++++++-------- .../apache/blur/spark/util/JavaSparkUtil.java | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/04236cfb/contrib/blur-spark/pom.xml ---------------------------------------------------------------------- diff --git a/contrib/blur-spark/pom.xml b/contrib/blur-spark/pom.xml index 83f845c..880a209 100644 --- a/contrib/blur-spark/pom.xml +++ b/contrib/blur-spark/pom.xml @@ -79,19 +79,18 @@ <artifactId>maven-jar-plugin</artifactId> </plugin> <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <descriptorRefs> - <descriptorRef>jar-with-dependencies</descriptorRef> - </descriptorRefs> - </configuration> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <version>2.2</version> <executions> <execution> - <id>make-assembly</id> <phase>package</phase> <goals> - <goal>single</goal> + <goal>shade</goal> </goals> + <configuration> + <createDependencyReducedPom>false</createDependencyReducedPom> + </configuration> </execution> </executions> </plugin> http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/04236cfb/contrib/blur-spark/src/main/java/org/apache/blur/spark/util/JavaSparkUtil.java ---------------------------------------------------------------------- diff --git a/contrib/blur-spark/src/main/java/org/apache/blur/spark/util/JavaSparkUtil.java b/contrib/blur-spark/src/main/java/org/apache/blur/spark/util/JavaSparkUtil.java index 6cea91a..48b7e4a 100644 --- a/contrib/blur-spark/src/main/java/org/apache/blur/spark/util/JavaSparkUtil.java +++ b/contrib/blur-spark/src/main/java/org/apache/blur/spark/util/JavaSparkUtil.java @@ -1,5 +1,24 @@ package org.apache.blur.spark.util; +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File;
