|
34 | 34 | <name>Spark Project Core</name> |
35 | 35 | <url>http://spark.apache.org/</url> |
36 | 36 | <dependencies> |
| 37 | + <dependency> |
| 38 | + <groupId>com.google.guava</groupId> |
| 39 | + <artifactId>guava</artifactId> |
| 40 | + </dependency> |
37 | 41 | <dependency> |
38 | 42 | <groupId>com.twitter</groupId> |
39 | 43 | <artifactId>chill_${scala.binary.version}</artifactId> |
|
90 | 94 | <groupId>org.apache.curator</groupId> |
91 | 95 | <artifactId>curator-recipes</artifactId> |
92 | 96 | </dependency> |
| 97 | + |
| 98 | + <!-- Jetty dependencies promoted to compile here so they are shaded |
| 99 | + and inlined into spark-core jar --> |
93 | 100 | <dependency> |
94 | 101 | <groupId>org.eclipse.jetty</groupId> |
95 | 102 | <artifactId>jetty-plus</artifactId> |
| 103 | + <scope>compile</scope> |
96 | 104 | </dependency> |
97 | 105 | <dependency> |
98 | 106 | <groupId>org.eclipse.jetty</groupId> |
99 | 107 | <artifactId>jetty-security</artifactId> |
| 108 | + <scope>compile</scope> |
100 | 109 | </dependency> |
101 | 110 | <dependency> |
102 | 111 | <groupId>org.eclipse.jetty</groupId> |
103 | 112 | <artifactId>jetty-util</artifactId> |
| 113 | + <scope>compile</scope> |
104 | 114 | </dependency> |
105 | 115 | <dependency> |
106 | 116 | <groupId>org.eclipse.jetty</groupId> |
107 | 117 | <artifactId>jetty-server</artifactId> |
| 118 | + <scope>compile</scope> |
108 | 119 | </dependency> |
109 | | - <!-- |
110 | | - Promote Guava to "compile" so that maven-shade-plugin picks it up (for packaging the Optional |
111 | | - class exposed in the Java API). The plugin will then remove this dependency from the published |
112 | | - pom, so that Guava does not pollute the client's compilation classpath. |
113 | | - --> |
114 | 120 | <dependency> |
115 | | - <groupId>com.google.guava</groupId> |
116 | | - <artifactId>guava</artifactId> |
| 121 | + <groupId>org.eclipse.jetty</groupId> |
| 122 | + <artifactId>jetty-http</artifactId> |
117 | 123 | <scope>compile</scope> |
118 | 124 | </dependency> |
| 125 | + |
119 | 126 | <dependency> |
120 | 127 | <groupId>org.apache.commons</groupId> |
121 | 128 | <artifactId>commons-lang3</artifactId> |
|
204 | 211 | <artifactId>stream</artifactId> |
205 | 212 | </dependency> |
206 | 213 | <dependency> |
207 | | - <groupId>com.codahale.metrics</groupId> |
| 214 | + <groupId>io.dropwizard.metrics</groupId> |
208 | 215 | <artifactId>metrics-core</artifactId> |
209 | 216 | </dependency> |
210 | 217 | <dependency> |
211 | | - <groupId>com.codahale.metrics</groupId> |
| 218 | + <groupId>io.dropwizard.metrics</groupId> |
212 | 219 | <artifactId>metrics-jvm</artifactId> |
213 | 220 | </dependency> |
214 | 221 | <dependency> |
215 | | - <groupId>com.codahale.metrics</groupId> |
| 222 | + <groupId>io.dropwizard.metrics</groupId> |
216 | 223 | <artifactId>metrics-json</artifactId> |
217 | 224 | </dependency> |
218 | 225 | <dependency> |
219 | | - <groupId>com.codahale.metrics</groupId> |
| 226 | + <groupId>io.dropwizard.metrics</groupId> |
220 | 227 | <artifactId>metrics-graphite</artifactId> |
221 | 228 | </dependency> |
222 | 229 | <dependency> |
|
350 | 357 | <verbose>true</verbose> |
351 | 358 | </configuration> |
352 | 359 | </plugin> |
353 | | - <plugin> |
354 | | - <groupId>org.apache.maven.plugins</groupId> |
355 | | - <artifactId>maven-shade-plugin</artifactId> |
356 | | - <executions> |
357 | | - <execution> |
358 | | - <phase>package</phase> |
359 | | - <goals> |
360 | | - <goal>shade</goal> |
361 | | - </goals> |
362 | | - <configuration> |
363 | | - <shadedArtifactAttached>false</shadedArtifactAttached> |
364 | | - <artifactSet> |
365 | | - <includes> |
366 | | - <include>com.google.guava:guava</include> |
367 | | - </includes> |
368 | | - </artifactSet> |
369 | | - <filters> |
370 | | - <!-- See comment in the guava dependency declaration above. --> |
371 | | - <filter> |
372 | | - <artifact>com.google.guava:guava</artifact> |
373 | | - <includes> |
374 | | - <include>com/google/common/base/Absent*</include> |
375 | | - <include>com/google/common/base/Optional*</include> |
376 | | - <include>com/google/common/base/Present*</include> |
377 | | - </includes> |
378 | | - </filter> |
379 | | - </filters> |
380 | | - </configuration> |
381 | | - </execution> |
382 | | - </executions> |
383 | | - </plugin> |
384 | | - <!-- |
385 | | - Copy guava to the build directory. This is needed to make the SPARK_PREPEND_CLASSES |
386 | | - option work in compute-classpath.sh, since it would put the non-shaded Spark classes in |
387 | | - the runtime classpath. |
388 | | - --> |
389 | 360 | <plugin> |
390 | 361 | <groupId>org.apache.maven.plugins</groupId> |
391 | 362 | <artifactId>maven-dependency-plugin</artifactId> |
392 | 363 | <executions> |
| 364 | + <!-- When using SPARK_PREPEND_CLASSES Spark classes compiled locally don't use |
| 365 | + shaded deps. So here we store jars in their original form which are added |
| 366 | + when the classpath is computed. --> |
393 | 367 | <execution> |
394 | 368 | <id>copy-dependencies</id> |
395 | 369 | <phase>package</phase> |
396 | 370 | <goals> |
397 | 371 | <goal>copy-dependencies</goal> |
398 | 372 | </goals> |
399 | | - <configuration> |
| 373 | + <configuration> |
400 | 374 | <outputDirectory>${project.build.directory}</outputDirectory> |
401 | 375 | <overWriteReleases>false</overWriteReleases> |
402 | 376 | <overWriteSnapshots>false</overWriteSnapshots> |
403 | 377 | <overWriteIfNewer>true</overWriteIfNewer> |
404 | 378 | <useSubDirectoryPerType>true</useSubDirectoryPerType> |
405 | | - <includeArtifactIds>guava</includeArtifactIds> |
| 379 | + <includeArtifactIds> |
| 380 | + guava,jetty-io,jetty-http,jetty-plus,jetty-util,jetty-server |
| 381 | + </includeArtifactIds> |
406 | 382 | <silent>true</silent> |
407 | 383 | </configuration> |
408 | 384 | </execution> |
|
0 commit comments