Hi,
Thanks Radek. However mvn package does not build the uber jar. I am
looking for an uber jar and not a distribution. I have seen references to
the uber jar here
<http://www.cloudera.com/documentation/enterprise/5-5-x/topics/cdh_ig_running_spark_on_yarn.html>
What I see in the spark 2.0 codeline (assembly/pom.xml) builds a
distribution. I
<profile>
<id>bigtop-dist</id>
<!-- This profile uses the assembly plugin to create a special "dist"
package for BigTop
that contains Spark but not the Hadoop JARs it depends on. -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>dist</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
... </plugins>
</build>
</profile>
In src/main/assembly/assembly.xml we see
<assembly>
<id>dist</id>
<formats>
<format>tar.gz</format>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
.....
On Sat, Aug 27, 2016 at 1:02 AM, Radoslaw Gruchalski <[email protected]>
wrote:
> mvn package might be the command you’re looking for.
>
> –
> Best regards,
> Radek Gruchalski
> [email protected]
>
>
> On August 26, 2016 at 3:59:24 PM, Srikanth Sampath (
> [email protected]) wrote:
>
> Hi,
> mvn assembly is creating a .tgz distribution. How can I create a plain
> jar archive? I would like to create a spark-assembly-<version>.jar
> -Srikanth
>
>