|
34 | 34 | <name>Spark Project Examples</name> |
35 | 35 | <url>http://spark.apache.org/</url> |
36 | 36 |
|
37 | | - <profiles> |
38 | | - <profile> |
39 | | - <id>kinesis-asl</id> |
40 | | - <dependencies> |
41 | | - <dependency> |
42 | | - <groupId>org.apache.spark</groupId> |
43 | | - <artifactId>spark-streaming-kinesis-asl_${scala.binary.version}</artifactId> |
44 | | - <version>${project.version}</version> |
45 | | - </dependency> |
46 | | - <dependency> |
47 | | - <groupId>org.apache.httpcomponents</groupId> |
48 | | - <artifactId>httpclient</artifactId> |
49 | | - <version>${commons.httpclient.version}</version> |
50 | | - </dependency> |
51 | | - </dependencies> |
52 | | - </profile> |
53 | | - </profiles> |
54 | | - |
55 | 37 | <dependencies> |
56 | 38 | <!-- Promote Guava to compile scope in this module so it's included while shading. --> |
57 | 39 | <dependency> |
|
100 | 82 | <artifactId>spark-streaming-twitter_${scala.binary.version}</artifactId> |
101 | 83 | <version>${project.version}</version> |
102 | 84 | </dependency> |
103 | | - <dependency> |
104 | | - <groupId>org.apache.spark</groupId> |
105 | | - <artifactId>spark-streaming-kafka_${scala.binary.version}</artifactId> |
106 | | - <version>${project.version}</version> |
107 | | - </dependency> |
108 | 85 | <dependency> |
109 | 86 | <groupId>org.apache.spark</groupId> |
110 | 87 | <artifactId>spark-streaming-flume_${scala.binary.version}</artifactId> |
111 | 88 | <version>${project.version}</version> |
112 | 89 | </dependency> |
113 | 90 | <dependency> |
114 | 91 | <groupId>org.apache.spark</groupId> |
115 | | - <artifactId>spark-streaming-zeromq_${scala.binary.version}</artifactId> |
| 92 | + <artifactId>spark-streaming-mqtt_${scala.binary.version}</artifactId> |
116 | 93 | <version>${project.version}</version> |
117 | 94 | </dependency> |
118 | 95 | <dependency> |
119 | 96 | <groupId>org.apache.spark</groupId> |
120 | | - <artifactId>spark-streaming-mqtt_${scala.binary.version}</artifactId> |
| 97 | + <artifactId>spark-streaming-zeromq_${scala.binary.version}</artifactId> |
121 | 98 | <version>${project.version}</version> |
122 | 99 | </dependency> |
123 | 100 | <dependency> |
|
152 | 129 | <artifactId>jetty-server</artifactId> |
153 | 130 | </dependency> |
154 | 131 | <dependency> |
155 | | - <groupId>com.twitter</groupId> |
156 | | - <artifactId>algebird-core_${scala.binary.version}</artifactId> |
157 | | - <version>0.1.11</version> |
158 | | - </dependency> |
159 | 132 | <dependency> |
160 | 133 | <groupId>org.apache.commons</groupId> |
161 | 134 | <artifactId>commons-math3</artifactId> |
|
292 | 265 | </plugin> |
293 | 266 | </plugins> |
294 | 267 | </build> |
| 268 | + <profiles> |
| 269 | + <profile> |
| 270 | + <id>kinesis-asl</id> |
| 271 | + <dependencies> |
| 272 | + <dependency> |
| 273 | + <groupId>org.apache.spark</groupId> |
| 274 | + <artifactId>spark-streaming-kinesis-asl_${scala.binary.version}</artifactId> |
| 275 | + <version>${project.version}</version> |
| 276 | + </dependency> |
| 277 | + <dependency> |
| 278 | + <groupId>org.apache.httpcomponents</groupId> |
| 279 | + <artifactId>httpclient</artifactId> |
| 280 | + <version>${commons.httpclient.version}</version> |
| 281 | + </dependency> |
| 282 | + </dependencies> |
| 283 | + </profile> |
| 284 | + <profile> |
| 285 | + <id>scala-2.10</id> |
| 286 | + <activation> |
| 287 | + <activeByDefault>true</activeByDefault> |
| 288 | + </activation> |
| 289 | + <dependencies> |
| 290 | + <dependency> |
| 291 | + <groupId>org.apache.spark</groupId> |
| 292 | + <artifactId>spark-streaming-kafka_${scala.binary.version}</artifactId> |
| 293 | + <version>${project.version}</version> |
| 294 | + </dependency> |
| 295 | + <dependency> |
| 296 | + <groupId>com.twitter</groupId> |
| 297 | + <artifactId>algebird-core_${scala.binary.version}</artifactId> |
| 298 | + <version>0.1.11</version> |
| 299 | + </dependency> |
| 300 | + </dependencies> |
| 301 | + <build> |
| 302 | + <plugins> |
| 303 | + <plugin> |
| 304 | + <groupId>org.codehaus.mojo</groupId> |
| 305 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 306 | + <executions> |
| 307 | + <execution> |
| 308 | + <id>add-scala-sources</id> |
| 309 | + <phase>generate-sources</phase> |
| 310 | + <goals> |
| 311 | + <goal>add-source</goal> |
| 312 | + </goals> |
| 313 | + <configuration> |
| 314 | + <sources> |
| 315 | + <source>src/main/scala</source> |
| 316 | + <source>scala-2.10/src/main/scala</source> |
| 317 | + <source>scala-2.10/src/main/java</source> |
| 318 | + </sources> |
| 319 | + </configuration> |
| 320 | + </execution> |
| 321 | + <execution> |
| 322 | + <id>add-scala-test-sources</id> |
| 323 | + <phase>generate-test-sources</phase> |
| 324 | + <goals> |
| 325 | + <goal>add-test-source</goal> |
| 326 | + </goals> |
| 327 | + <configuration> |
| 328 | + <sources> |
| 329 | + <source>src/test/scala</source> |
| 330 | + <source>scala-2.10/src/test/scala</source> |
| 331 | + <source>scala-2.10/src/test/java</source> |
| 332 | + </sources> |
| 333 | + </configuration> |
| 334 | + </execution> |
| 335 | + </executions> |
| 336 | + </plugin> |
| 337 | + </plugins> |
| 338 | + </build> |
| 339 | + </profile> |
| 340 | + <profile> |
| 341 | + <id>scala-2.11</id> |
| 342 | + <activation> |
| 343 | + <activeByDefault>false</activeByDefault> |
| 344 | + </activation> |
| 345 | + <dependencies> |
| 346 | + <!-- Streaming Kafka and zeromq modules are disabled for now. --> |
| 347 | + </dependencies> |
| 348 | + <build> |
| 349 | + <plugins> |
| 350 | + <plugin> |
| 351 | + <groupId>org.codehaus.mojo</groupId> |
| 352 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 353 | + <executions> |
| 354 | + <execution> |
| 355 | + <id>add-scala-sources</id> |
| 356 | + <phase>generate-sources</phase> |
| 357 | + <goals> |
| 358 | + <goal>add-source</goal> |
| 359 | + </goals> |
| 360 | + <configuration> |
| 361 | + <sources> |
| 362 | + <source>src/main/scala</source> |
| 363 | + <source>scala-2.11/src/main/scala</source> |
| 364 | + </sources> |
| 365 | + </configuration> |
| 366 | + </execution> |
| 367 | + <execution> |
| 368 | + <id>add-scala-test-sources</id> |
| 369 | + <phase>generate-test-sources</phase> |
| 370 | + <goals> |
| 371 | + <goal>add-test-source</goal> |
| 372 | + </goals> |
| 373 | + <configuration> |
| 374 | + <sources> |
| 375 | + <source>src/test/scala</source> |
| 376 | + <source>scala-2.11/src/test/scala</source> |
| 377 | + </sources> |
| 378 | + </configuration> |
| 379 | + </execution> |
| 380 | + </executions> |
| 381 | + </plugin> |
| 382 | + </plugins> |
| 383 | + </build> |
| 384 | + </profile> |
| 385 | + </profiles> |
295 | 386 | </project> |
0 commit comments