|
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> |
|
95 | 99 | <groupId>org.apache.curator</groupId> |
96 | 100 | <artifactId>curator-recipes</artifactId> |
97 | 101 | </dependency> |
| 102 | + |
| 103 | + <!-- Jetty dependencies promoted to compile here so they are shaded |
| 104 | + and inlined into spark-core jar --> |
98 | 105 | <dependency> |
99 | 106 | <groupId>org.eclipse.jetty</groupId> |
100 | 107 | <artifactId>jetty-plus</artifactId> |
| 108 | + <scope>compile</scope> |
101 | 109 | </dependency> |
102 | 110 | <dependency> |
103 | 111 | <groupId>org.eclipse.jetty</groupId> |
104 | 112 | <artifactId>jetty-security</artifactId> |
| 113 | + <scope>compile</scope> |
105 | 114 | </dependency> |
106 | 115 | <dependency> |
107 | 116 | <groupId>org.eclipse.jetty</groupId> |
108 | 117 | <artifactId>jetty-util</artifactId> |
| 118 | + <scope>compile</scope> |
109 | 119 | </dependency> |
110 | 120 | <dependency> |
111 | 121 | <groupId>org.eclipse.jetty</groupId> |
112 | 122 | <artifactId>jetty-server</artifactId> |
| 123 | + <scope>compile</scope> |
113 | 124 | </dependency> |
114 | | - <!-- |
115 | | - Promote Guava to "compile" so that maven-shade-plugin picks it up (for packaging the Optional |
116 | | - class exposed in the Java API). The plugin will then remove this dependency from the published |
117 | | - pom, so that Guava does not pollute the client's compilation classpath. |
118 | | - --> |
119 | 125 | <dependency> |
120 | | - <groupId>com.google.guava</groupId> |
121 | | - <artifactId>guava</artifactId> |
| 126 | + <groupId>org.eclipse.jetty</groupId> |
| 127 | + <artifactId>jetty-http</artifactId> |
| 128 | + <scope>compile</scope> |
| 129 | + </dependency> |
| 130 | + <dependency> |
| 131 | + <groupId>org.eclipse.jetty</groupId> |
| 132 | + <artifactId>jetty-continuation</artifactId> |
| 133 | + <scope>compile</scope> |
| 134 | + </dependency> |
| 135 | + <dependency> |
| 136 | + <groupId>org.eclipse.jetty</groupId> |
| 137 | + <artifactId>jetty-servlet</artifactId> |
122 | 138 | <scope>compile</scope> |
123 | 139 | </dependency> |
| 140 | + |
124 | 141 | <dependency> |
125 | 142 | <groupId>org.apache.commons</groupId> |
126 | 143 | <artifactId>commons-lang3</artifactId> |
|
209 | 226 | <artifactId>stream</artifactId> |
210 | 227 | </dependency> |
211 | 228 | <dependency> |
212 | | - <groupId>com.codahale.metrics</groupId> |
| 229 | + <groupId>io.dropwizard.metrics</groupId> |
213 | 230 | <artifactId>metrics-core</artifactId> |
214 | 231 | </dependency> |
215 | 232 | <dependency> |
216 | | - <groupId>com.codahale.metrics</groupId> |
| 233 | + <groupId>io.dropwizard.metrics</groupId> |
217 | 234 | <artifactId>metrics-jvm</artifactId> |
218 | 235 | </dependency> |
219 | 236 | <dependency> |
220 | | - <groupId>com.codahale.metrics</groupId> |
| 237 | + <groupId>io.dropwizard.metrics</groupId> |
221 | 238 | <artifactId>metrics-json</artifactId> |
222 | 239 | </dependency> |
223 | 240 | <dependency> |
224 | | - <groupId>com.codahale.metrics</groupId> |
| 241 | + <groupId>io.dropwizard.metrics</groupId> |
225 | 242 | <artifactId>metrics-graphite</artifactId> |
226 | 243 | </dependency> |
227 | 244 | <dependency> |
228 | 245 | <groupId>org.apache.derby</groupId> |
229 | 246 | <artifactId>derby</artifactId> |
230 | 247 | <scope>test</scope> |
231 | 248 | </dependency> |
| 249 | + <dependency> |
| 250 | + <groupId>org.apache.ivy</groupId> |
| 251 | + <artifactId>ivy</artifactId> |
| 252 | + <version>${ivy.version}</version> |
| 253 | + </dependency> |
| 254 | + <dependency> |
| 255 | + <groupId>oro</groupId> |
| 256 | + <!-- oro is needed by ivy, but only listed as an optional dependency, so we include it. --> |
| 257 | + <artifactId>oro</artifactId> |
| 258 | + <version>${oro.version}</version> |
| 259 | + </dependency> |
232 | 260 | <dependency> |
233 | 261 | <groupId>org.tachyonproject</groupId> |
234 | 262 | <artifactId>tachyon-client</artifactId> |
|
355 | 383 | <verbose>true</verbose> |
356 | 384 | </configuration> |
357 | 385 | </plugin> |
358 | | - <plugin> |
359 | | - <groupId>org.apache.maven.plugins</groupId> |
360 | | - <artifactId>maven-shade-plugin</artifactId> |
361 | | - <executions> |
362 | | - <execution> |
363 | | - <phase>package</phase> |
364 | | - <goals> |
365 | | - <goal>shade</goal> |
366 | | - </goals> |
367 | | - <configuration> |
368 | | - <shadedArtifactAttached>false</shadedArtifactAttached> |
369 | | - <artifactSet> |
370 | | - <includes> |
371 | | - <include>com.google.guava:guava</include> |
372 | | - </includes> |
373 | | - </artifactSet> |
374 | | - <filters> |
375 | | - <!-- See comment in the guava dependency declaration above. --> |
376 | | - <filter> |
377 | | - <artifact>com.google.guava:guava</artifact> |
378 | | - <includes> |
379 | | - <include>com/google/common/base/Absent*</include> |
380 | | - <include>com/google/common/base/Optional*</include> |
381 | | - <include>com/google/common/base/Present*</include> |
382 | | - </includes> |
383 | | - </filter> |
384 | | - </filters> |
385 | | - </configuration> |
386 | | - </execution> |
387 | | - </executions> |
388 | | - </plugin> |
389 | | - <!-- |
390 | | - Copy guava to the build directory. This is needed to make the SPARK_PREPEND_CLASSES |
391 | | - option work in compute-classpath.sh, since it would put the non-shaded Spark classes in |
392 | | - the runtime classpath. |
393 | | - --> |
394 | 386 | <plugin> |
395 | 387 | <groupId>org.apache.maven.plugins</groupId> |
396 | 388 | <artifactId>maven-dependency-plugin</artifactId> |
397 | 389 | <executions> |
| 390 | + <!-- When using SPARK_PREPEND_CLASSES Spark classes compiled locally don't use |
| 391 | + shaded deps. So here we store jars in their original form which are added |
| 392 | + when the classpath is computed. --> |
398 | 393 | <execution> |
399 | 394 | <id>copy-dependencies</id> |
400 | 395 | <phase>package</phase> |
401 | 396 | <goals> |
402 | 397 | <goal>copy-dependencies</goal> |
403 | 398 | </goals> |
404 | | - <configuration> |
| 399 | + <configuration> |
405 | 400 | <outputDirectory>${project.build.directory}</outputDirectory> |
406 | 401 | <overWriteReleases>false</overWriteReleases> |
407 | 402 | <overWriteSnapshots>false</overWriteSnapshots> |
408 | 403 | <overWriteIfNewer>true</overWriteIfNewer> |
409 | 404 | <useSubDirectoryPerType>true</useSubDirectoryPerType> |
410 | | - <includeArtifactIds>guava</includeArtifactIds> |
| 405 | + <includeArtifactIds> |
| 406 | + guava,jetty-io,jetty-servlet,jetty-continuation,jetty-http,jetty-plus,jetty-util,jetty-server |
| 407 | + </includeArtifactIds> |
411 | 408 | <silent>true</silent> |
412 | 409 | </configuration> |
413 | 410 | </execution> |
|
0 commit comments