|
363 | 363 | <groupId>org.apache.maven.plugins</groupId>
|
364 | 364 | <artifactId>maven-assembly-plugin</artifactId>
|
365 | 365 | <configuration>
|
366 |
| - <finalName>${project.artifactId}-${project.version}-all-dependencies</finalName> |
367 |
| - <appendAssemblyId>false</appendAssemblyId> |
368 | 366 | <descriptorRefs>
|
369 | 367 | <descriptorRef>jar-with-dependencies</descriptorRef>
|
370 | 368 | </descriptorRefs>
|
|
377 | 375 | </manifest>
|
378 | 376 | </archive>
|
379 | 377 | </configuration>
|
380 |
| - <executions> |
381 |
| - <execution> |
382 |
| - <id>make-assembly</id> |
383 |
| - <phase>package</phase> |
384 |
| - <goals> |
385 |
| - <goal>single</goal> |
386 |
| - </goals> |
387 |
| - </execution> |
388 |
| - </executions> |
389 | 378 | </plugin>
|
390 | 379 | <plugin>
|
391 | 380 | <groupId>org.apache.maven.plugins</groupId>
|
|
478 | 467 | </filters>
|
479 | 468 | </configuration>
|
480 | 469 | </execution>
|
| 470 | + |
| 471 | + <execution> |
| 472 | + <id>all-dependencies</id> |
| 473 | + <phase>package</phase> |
| 474 | + <goals> |
| 475 | + <goal>shade</goal> |
| 476 | + </goals> |
| 477 | + <configuration> |
| 478 | + <outputDirectory>${project.build.directory}/bundle/</outputDirectory> |
| 479 | + <shadedArtifactAttached>true</shadedArtifactAttached> |
| 480 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 481 | + <!-- <createSourcesJar>true</createSourcesJar>--> |
| 482 | + <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| 483 | + <shadedClassifierName>all-dependencies</shadedClassifierName> |
| 484 | + <artifactSet> |
| 485 | + <excludes> |
| 486 | + <!-- provided libraries --> |
| 487 | + <exclude>io.micrometer:*</exclude> |
| 488 | + </excludes> |
| 489 | + </artifactSet> |
| 490 | + <relocations> |
| 491 | + <relocation> |
| 492 | + <!-- lz4 compression --> |
| 493 | + <pattern>net.jpountz</pattern> |
| 494 | + <shadedPattern>${shade.base}.net.jpountz</shadedPattern> |
| 495 | + </relocation> |
| 496 | + <relocation> |
| 497 | + <pattern>org.roaringbitmap</pattern> |
| 498 | + <shadedPattern>${shade.base}.org.roaringbitmap</shadedPattern> |
| 499 | + </relocation> |
| 500 | + |
| 501 | + <relocation> |
| 502 | + <!-- asm --> |
| 503 | + <pattern>org.objectweb</pattern> |
| 504 | + <shadedPattern>${shade.base}.org.objectweb</shadedPattern> |
| 505 | + </relocation> |
| 506 | + |
| 507 | + |
| 508 | + <relocation> |
| 509 | + <pattern>com.google</pattern> |
| 510 | + <shadedPattern>${shade.base}.com.google</shadedPattern> |
| 511 | + </relocation> |
| 512 | + |
| 513 | + <relocation> |
| 514 | + <pattern>org.apache</pattern> |
| 515 | + <shadedPattern>${shade.base}.org.apache</shadedPattern> |
| 516 | + </relocation> |
| 517 | + |
| 518 | + <relocation> |
| 519 | + <pattern>org.antlr</pattern> |
| 520 | + <shadedPattern>${shade.base}.org.antlr</shadedPattern> |
| 521 | + </relocation> |
| 522 | + </relocations> |
| 523 | + <transformers> |
| 524 | + <transformer |
| 525 | + implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" /> |
| 526 | + <transformer |
| 527 | + implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" /> |
| 528 | + <transformer |
| 529 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 530 | + <transformer |
| 531 | + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 532 | + <manifestEntries> |
| 533 | + <Automatic-Module-Name>${project.groupId}.jdbc</Automatic-Module-Name> |
| 534 | + <Main-Class>${mainClass}</Main-Class> |
| 535 | + <Specification-Title>${spec.title}</Specification-Title> |
| 536 | + <Specification-Version>${spec.version}</Specification-Version> |
| 537 | + </manifestEntries> |
| 538 | + </transformer> |
| 539 | + </transformers> |
| 540 | + <filters> |
| 541 | + <filter> |
| 542 | + <artifact>*:*</artifact> |
| 543 | + <excludes> |
| 544 | + <exclude>google/**</exclude> |
| 545 | + <exclude>org/checkerframework/**</exclude> |
| 546 | + <exclude>org/codehaus/**</exclude> |
| 547 | + <exclude>**/module-info.class</exclude> |
| 548 | + </excludes> |
| 549 | + </filter> |
| 550 | + </filters> |
| 551 | + </configuration> |
| 552 | + </execution> |
481 | 553 | </executions>
|
482 | 554 | </plugin>
|
483 | 555 | <plugin>
|
|
0 commit comments