|
85 | 85 | <lombok-version>1.18.20</lombok-version>
|
86 | 86 | <maven-plugin-annotations-version>3.5</maven-plugin-annotations-version>
|
87 | 87 | <maven-plugin-depdendencies-version>3.3.9</maven-plugin-depdendencies-version>
|
| 88 | + <maven-plugin-flatten-version>1.2.7</maven-plugin-flatten-version> |
88 | 89 | <maven-plugin-plugin-version>3.6.4</maven-plugin-plugin-version>
|
89 | 90 | <maven-plugin-testing-harness-version>3.3.0</maven-plugin-testing-harness-version>
|
90 | 91 | <rgxgen-version>1.3</rgxgen-version>
|
|
362 | 363 | <artifactId>build-helper-maven-plugin</artifactId>
|
363 | 364 | <version>${build-helper-maven-plugin-version}</version>
|
364 | 365 | </plugin>
|
| 366 | + <plugin> |
| 367 | + <groupId>org.codehaus.mojo</groupId> |
| 368 | + <artifactId>flatten-maven-plugin</artifactId> |
| 369 | + <version>${maven-plugin-flatten-version}</version> |
| 370 | + </plugin> |
365 | 371 | <plugin>
|
366 | 372 | <groupId>org.apache.maven.plugins</groupId>
|
367 | 373 | <artifactId>maven-jar-plugin</artifactId>
|
|
470 | 476 | </execution>
|
471 | 477 | </executions>
|
472 | 478 | </plugin>
|
| 479 | + <plugin> |
| 480 | + <!-- |
| 481 | + This plugin strips down original pom.xml to a required minimum and stores it within the final artifact in favor of the original one. |
| 482 | + Original pom.xml will be kept untouched. For convenience you'll find the flattened version after a Maven build next to the original pom.xml. |
| 483 | + This results in a more streamlined POM which is much easier to grasp as a consuming developer of the SDK. |
| 484 | + --> |
| 485 | + <groupId>org.codehaus.mojo</groupId> |
| 486 | + <artifactId>flatten-maven-plugin</artifactId> |
| 487 | + <configuration> |
| 488 | + <!-- see https://central.sonatype.org/publish/requirements --> |
| 489 | + <flattenMode>ossrh</flattenMode> |
| 490 | + </configuration> |
| 491 | + <executions> |
| 492 | + <execution> |
| 493 | + <id>flatten</id> |
| 494 | + <phase>process-resources</phase> |
| 495 | + <goals> |
| 496 | + <goal>flatten</goal> |
| 497 | + </goals> |
| 498 | + </execution> |
| 499 | + <execution> |
| 500 | + <id>clean-flatten</id> |
| 501 | + <phase>clean</phase> |
| 502 | + <goals> |
| 503 | + <goal>clean</goal> |
| 504 | + </goals> |
| 505 | + </execution> |
| 506 | + </executions> |
| 507 | + </plugin> |
473 | 508 | <plugin>
|
474 | 509 | <groupId>org.apache.maven.plugins</groupId>
|
475 | 510 | <artifactId>maven-source-plugin</artifactId>
|
|
0 commit comments