|
406 | 406 | </dependencies>
|
407 | 407 |
|
408 | 408 | <build>
|
409 |
| - <pluginManagement> |
410 |
| - <plugins> |
411 |
| - <plugin> |
412 |
| - <groupId>org.apache.maven.plugins</groupId> |
413 |
| - <artifactId>maven-compiler-plugin</artifactId> |
414 |
| - <version>3.1</version> |
415 |
| - <configuration> |
416 |
| - <source>1.8</source> |
417 |
| - <target>1.8</target> |
418 |
| - </configuration> |
419 |
| - </plugin> |
420 |
| - <plugin> |
421 |
| - <groupId>org.apache.maven.plugins</groupId> |
422 |
| - <artifactId>maven-surefire-plugin</artifactId> |
423 |
| - <version>2.14.1</version> |
424 |
| - <configuration> |
425 |
| - <argLine>-Xmx512m</argLine> |
426 |
| - <systemPropertyVariables> |
427 |
| - <java.io.tmpdir>${project.build.directory}</java.io.tmpdir> |
428 |
| - </systemPropertyVariables> |
429 |
| - <includes> |
430 |
| - <include>**/*TestSuite.java</include> |
431 |
| - <include>**/Test*.java</include> |
432 |
| - <include>**/*Test.java</include> |
433 |
| - <include>**/*TestCase.java</include> |
434 |
| - </includes> |
435 |
| - </configuration> |
436 |
| - </plugin> |
437 |
| - <plugin> |
438 |
| - <groupId>org.apache.felix</groupId> |
439 |
| - <artifactId>maven-bundle-plugin</artifactId> |
440 |
| - <version>3.5.1</version> |
441 |
| - <extensions>true</extensions> |
442 |
| - <configuration> |
443 |
| - <instructions> |
444 |
| - <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency> |
445 |
| - <Embed-Transitive>true</Embed-Transitive> |
446 |
| - <Embed-Directory>lib</Embed-Directory> |
447 |
| - <!--Only @Plugin classes in the export packages will be included as plugin--> |
448 |
| - <_exportcontents> |
449 |
| - co.cask.gcp.*; |
450 |
| - com.google.cloud.hadoop.*; |
451 |
| - org.apache.avro.mapred.*; |
452 |
| - org.apache.avro.mapreduce; |
453 |
| - parquet.avro.*; |
454 |
| - parquet.hadoop.*; |
455 |
| - org.apache.spark.streaming.pubsub*; |
456 |
| - </_exportcontents> |
457 |
| - </instructions> |
458 |
| - </configuration> |
459 |
| - <executions> |
460 |
| - <execution> |
461 |
| - <phase>package</phase> |
462 |
| - <goals> |
463 |
| - <goal>bundle</goal> |
464 |
| - </goals> |
465 |
| - </execution> |
466 |
| - </executions> |
467 |
| - </plugin> |
468 |
| - <plugin> |
469 |
| - <groupId>org.apache.maven.plugins</groupId> |
470 |
| - <artifactId>maven-antrun-plugin</artifactId> |
471 |
| - <version>1.7</version> |
472 |
| - </plugin> |
473 |
| - <plugin> |
474 |
| - <groupId>net.alchim31.maven</groupId> |
475 |
| - <artifactId>scala-maven-plugin</artifactId> |
476 |
| - <version>3.2.2</version> |
477 |
| - <configuration> |
478 |
| - <args> |
479 |
| - <arg>-target:jvm-1.7</arg> |
480 |
| - </args> |
481 |
| - </configuration> |
482 |
| - <executions> |
483 |
| - <execution> |
484 |
| - <id>scala-add-source</id> |
485 |
| - <goals> |
486 |
| - <goal>add-source</goal> |
487 |
| - </goals> |
488 |
| - </execution> |
489 |
| - <execution> |
490 |
| - <id>scala-compile</id> |
491 |
| - <!-- Needs to be before the compile phase --> |
492 |
| - <phase>process-resources</phase> |
493 |
| - <goals> |
494 |
| - <goal>compile</goal> |
495 |
| - </goals> |
496 |
| - </execution> |
497 |
| - <execution> |
498 |
| - <id>scala-test-compile</id> |
499 |
| - <!-- Needs to be before the test-compile phase --> |
500 |
| - <phase>process-test-resources</phase> |
501 |
| - <goals> |
502 |
| - <goal>testCompile</goal> |
503 |
| - </goals> |
504 |
| - </execution> |
505 |
| - </executions> |
506 |
| - </plugin> |
507 |
| - </plugins> |
508 |
| - </pluginManagement> |
509 |
| - |
510 | 409 | <plugins>
|
| 410 | + <plugin> |
| 411 | + <groupId>org.apache.maven.plugins</groupId> |
| 412 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 413 | + <version>2.17</version> |
| 414 | + <executions> |
| 415 | + <execution> |
| 416 | + <id>validate</id> |
| 417 | + <phase>process-test-classes</phase> |
| 418 | + <configuration> |
| 419 | + <configLocation>checkstyle.xml</configLocation> |
| 420 | + <suppressionsLocation>suppressions.xml</suppressionsLocation> |
| 421 | + <encoding>UTF-8</encoding> |
| 422 | + <consoleOutput>true</consoleOutput> |
| 423 | + <failsOnError>true</failsOnError> |
| 424 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 425 | + </configuration> |
| 426 | + <goals> |
| 427 | + <goal>check</goal> |
| 428 | + </goals> |
| 429 | + </execution> |
| 430 | + </executions> |
| 431 | + <dependencies> |
| 432 | + <dependency> |
| 433 | + <groupId>com.puppycrawl.tools</groupId> |
| 434 | + <artifactId>checkstyle</artifactId> |
| 435 | + <version>6.19</version> |
| 436 | + </dependency> |
| 437 | + </dependencies> |
| 438 | + </plugin> |
| 439 | + |
511 | 440 | <plugin>
|
512 | 441 | <groupId>org.apache.maven.plugins</groupId>
|
513 | 442 | <artifactId>maven-compiler-plugin</artifactId>
|
| 443 | + <version>3.1</version> |
| 444 | + <configuration> |
| 445 | + <source>1.8</source> |
| 446 | + <target>1.8</target> |
| 447 | + </configuration> |
| 448 | + </plugin> |
| 449 | + |
| 450 | + <plugin> |
| 451 | + <groupId>net.alchim31.maven</groupId> |
| 452 | + <artifactId>scala-maven-plugin</artifactId> |
| 453 | + <version>3.2.2</version> |
| 454 | + <configuration> |
| 455 | + <args> |
| 456 | + <arg>-target:jvm-1.7</arg> |
| 457 | + </args> |
| 458 | + </configuration> |
| 459 | + <executions> |
| 460 | + <execution> |
| 461 | + <id>scala-add-source</id> |
| 462 | + <goals> |
| 463 | + <goal>add-source</goal> |
| 464 | + </goals> |
| 465 | + </execution> |
| 466 | + <execution> |
| 467 | + <id>scala-compile</id> |
| 468 | + <!-- Needs to be before the compile phase --> |
| 469 | + <phase>process-resources</phase> |
| 470 | + <goals> |
| 471 | + <goal>compile</goal> |
| 472 | + </goals> |
| 473 | + </execution> |
| 474 | + <execution> |
| 475 | + <id>scala-test-compile</id> |
| 476 | + <!-- Needs to be before the test-compile phase --> |
| 477 | + <phase>process-test-resources</phase> |
| 478 | + <goals> |
| 479 | + <goal>testCompile</goal> |
| 480 | + </goals> |
| 481 | + </execution> |
| 482 | + </executions> |
514 | 483 | </plugin>
|
| 484 | + |
515 | 485 | <plugin>
|
516 | 486 | <groupId>org.apache.maven.plugins</groupId>
|
517 | 487 | <artifactId>maven-surefire-plugin</artifactId>
|
| 488 | + <version>2.14.1</version> |
| 489 | + <configuration> |
| 490 | + <argLine>-Xmx512m</argLine> |
| 491 | + <systemPropertyVariables> |
| 492 | + <java.io.tmpdir>${project.build.directory}</java.io.tmpdir> |
| 493 | + </systemPropertyVariables> |
| 494 | + <includes> |
| 495 | + <include>**/*TestSuite.java</include> |
| 496 | + <include>**/Test*.java</include> |
| 497 | + <include>**/*Test.java</include> |
| 498 | + <include>**/*TestCase.java</include> |
| 499 | + </includes> |
| 500 | + </configuration> |
518 | 501 | </plugin>
|
| 502 | + |
519 | 503 | <plugin>
|
520 | 504 | <groupId>org.apache.felix</groupId>
|
521 | 505 | <artifactId>maven-bundle-plugin</artifactId>
|
| 506 | + <version>3.5.1</version> |
| 507 | + <extensions>true</extensions> |
| 508 | + <configuration> |
| 509 | + <instructions> |
| 510 | + <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency> |
| 511 | + <Embed-Transitive>true</Embed-Transitive> |
| 512 | + <Embed-Directory>lib</Embed-Directory> |
| 513 | + <!--Only @Plugin classes in the export packages will be included as plugin--> |
| 514 | + <_exportcontents> |
| 515 | + co.cask.gcp.*; |
| 516 | + com.google.cloud.hadoop.*; |
| 517 | + org.apache.avro.mapred.*; |
| 518 | + org.apache.avro.mapreduce; |
| 519 | + parquet.avro.*; |
| 520 | + parquet.hadoop.*; |
| 521 | + org.apache.spark.streaming.pubsub*; |
| 522 | + </_exportcontents> |
| 523 | + </instructions> |
| 524 | + </configuration> |
| 525 | + <executions> |
| 526 | + <execution> |
| 527 | + <phase>package</phase> |
| 528 | + <goals> |
| 529 | + <goal>bundle</goal> |
| 530 | + </goals> |
| 531 | + </execution> |
| 532 | + </executions> |
522 | 533 | </plugin>
|
523 |
| - <plugin> |
524 |
| - <groupId>org.apache.maven.plugins</groupId> |
525 |
| - <artifactId>maven-antrun-plugin</artifactId> |
526 |
| - </plugin> |
| 534 | + |
527 | 535 | <plugin>
|
528 | 536 | <groupId>co.cask</groupId>
|
529 | 537 | <artifactId>cdap-maven-plugin</artifactId>
|
|
544 | 552 | </execution>
|
545 | 553 | </executions>
|
546 | 554 | </plugin>
|
547 |
| - <plugin> |
548 |
| - <groupId>net.alchim31.maven</groupId> |
549 |
| - <artifactId>scala-maven-plugin</artifactId> |
550 |
| - </plugin> |
551 | 555 | </plugins>
|
552 | 556 | </build>
|
553 | 557 |
|
|
0 commit comments