Ah, an uberjar. Normally one would build the uberjar with a Maven Shade plugin.
Haven't looked into Spark code much recently, it wouldn't make much sense
having a separate maven command to build an uberjar while building a
distribution because, from memory, if you open the tgz file, the uberjar sits
in the lib directory.
--
Best regards,
Rad
_____________________________
From: Srikanth Sampath <[email protected]>
Sent: Saturday, August 27, 2016 5:24 am
Subject: Re: Assembly build on spark 2.0.0
To: Radoslaw Gruchalski <[email protected]>
Cc: <[email protected]>
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 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,
RadekGruchalski
[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 Icreate a
plain jar archive? I would like to create
aspark-assembly-<version>.jar-Srikanth