Skip to content

Commit

Permalink
Update missing_dependencies_in_jar_files.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vidaha committed Oct 7, 2014
1 parent 8509083 commit 12dedc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion troubleshooting/missing_dependencies_in_jar_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ By default, maven does not include dependency jars when it builds a target. Whe

The easiest way to work around this is to create a *shaded* or *uber* jar to package the dependencies in the jar as well.

It is possible to opt out certain dependencies from being included in the uber jar by marking them as ```<scope>provided</scope>```. Spark dependencies should be marked as provided since they are already on the Spark cluster. You may also exclude other jars that you have installed to your worker machines.
It is possible to opt out certain dependencies from being included in the uber jar by marking them as ```<scope>provided</scope>```. Spark dependencies should be marked as provided since they are already on the Spark cluster. You may also exclude other jars that you have installed on your worker machines.

Here is an example Maven pom.xml file that creates an uber jar with all the code in that project and includes the common-cli dependency, but not any of the Spark libraries.:

Expand Down

0 comments on commit 12dedc6

Please sign in to comment.