|
72 | 72 | <scope>provided</scope> |
73 | 73 | </dependency> |
74 | 74 |
|
75 | | - <!-- Will be shipped as Flink lib --> |
76 | 75 | <dependency> |
77 | 76 | <groupId>org.apache.iceberg</groupId> |
78 | 77 | <artifactId>iceberg-aws-bundle</artifactId> |
|
452 | 451 | <plugin> |
453 | 452 | <groupId>org.apache.maven.plugins</groupId> |
454 | 453 | <artifactId>maven-dependency-plugin</artifactId> |
455 | | - <version>3.8.1</version> |
456 | 454 | <executions> |
457 | 455 | <execution> |
458 | | - <id>copy-s3-fs-hadoop</id> |
| 456 | + <id>unpack-iceberg-aws-bundle-without-logging</id> |
459 | 457 | <goals> |
460 | | - <goal>copy-dependencies</goal> |
| 458 | + <goal>unpack</goal> |
461 | 459 | </goals> |
462 | 460 | <phase>process-resources</phase> |
463 | 461 | <configuration> |
464 | | - <includeGroupIds>org.apache.flink</includeGroupIds> |
465 | | - <includeArtifactIds>flink-s3-fs-hadoop</includeArtifactIds> |
466 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
| 462 | + <artifactItems> |
| 463 | + <artifactItem> |
| 464 | + <groupId>org.apache.iceberg</groupId> |
| 465 | + <artifactId>iceberg-aws-bundle</artifactId> |
| 466 | + <version>${iceberg.version}</version> |
| 467 | + <type>jar</type> |
| 468 | + <overWrite>true</overWrite> |
| 469 | + <outputDirectory>${project.build.directory}/iceberg-aws-bundle-temp</outputDirectory> |
| 470 | + <excludes>org/apache/logging/**,org/slf4j/**</excludes> |
| 471 | + </artifactItem> |
| 472 | + </artifactItems> |
467 | 473 | </configuration> |
468 | 474 | </execution> |
469 | 475 | <execution> |
470 | | - <id>copy-iceberg-runtime</id> |
| 476 | + <id>copy-s3-fs-hadoop</id> |
471 | 477 | <goals> |
472 | 478 | <goal>copy-dependencies</goal> |
473 | 479 | </goals> |
474 | 480 | <phase>process-resources</phase> |
475 | 481 | <configuration> |
476 | | - <includeGroupIds>org.apache.iceberg</includeGroupIds> |
477 | | - <includeArtifactIds>iceberg-flink-runtime-1.19</includeArtifactIds> |
| 482 | + <includeGroupIds>org.apache.flink</includeGroupIds> |
| 483 | + <includeArtifactIds>flink-s3-fs-hadoop</includeArtifactIds> |
478 | 484 | <outputDirectory>${project.build.directory}</outputDirectory> |
479 | 485 | </configuration> |
480 | 486 | </execution> |
481 | 487 | <execution> |
482 | | - <id>copy-iceberg-aws-bundle</id> |
| 488 | + <id>copy-iceberg-runtime</id> |
483 | 489 | <goals> |
484 | 490 | <goal>copy-dependencies</goal> |
485 | 491 | </goals> |
486 | 492 | <phase>process-resources</phase> |
487 | 493 | <configuration> |
488 | 494 | <includeGroupIds>org.apache.iceberg</includeGroupIds> |
489 | | - <includeArtifactIds>iceberg-aws-bundle</includeArtifactIds> |
| 495 | + <includeArtifactIds>iceberg-flink-runtime-1.19</includeArtifactIds> |
490 | 496 | <outputDirectory>${project.build.directory}</outputDirectory> |
491 | 497 | </configuration> |
492 | 498 | </execution> |
|
551 | 557 | </execution> |
552 | 558 | </executions> |
553 | 559 | </plugin> |
| 560 | + |
| 561 | + <!-- Repackage iceberg-aws-bundle without SLF4J using antrun plugin --> |
| 562 | + <plugin> |
| 563 | + <groupId>org.apache.maven.plugins</groupId> |
| 564 | + <artifactId>maven-antrun-plugin</artifactId> |
| 565 | + <executions> |
| 566 | + <execution> |
| 567 | + <id>repack-iceberg-aws-bundle</id> |
| 568 | + <goals> |
| 569 | + <goal>run</goal> |
| 570 | + </goals> |
| 571 | + <phase>prepare-package</phase> |
| 572 | + <configuration> |
| 573 | + <target> |
| 574 | + <jar basedir="${project.build.directory}/iceberg-aws-bundle-temp" destfile="${project.build.directory}/iceberg-aws-bundle-${iceberg.version}.jar"/> |
| 575 | + </target> |
| 576 | + </configuration> |
| 577 | + </execution> |
| 578 | + </executions> |
| 579 | + </plugin> |
554 | 580 | </plugins> |
555 | 581 | </build> |
556 | 582 |
|
|
0 commit comments