|
71 | 71 | <system.stubs.version>2.1.8</system.stubs.version> |
72 | 72 |
|
73 | 73 | <!-- Plugin version --> |
| 74 | + <build.helper-maven-plugin.version>3.6.0</build.helper-maven-plugin.version> |
74 | 75 | <jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version> |
75 | 76 | <spotless-maven-plugin.version>2.44.4</spotless-maven-plugin.version> |
76 | 77 | <maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version> |
|
254 | 255 | </dependencies> |
255 | 256 |
|
256 | 257 | <build> |
257 | | - <resources> |
258 | | - <resource> |
259 | | - <filtering>true</filtering> |
260 | | - <directory>src/main/resources</directory> |
261 | | - <includes> |
262 | | - <include>version.properties</include> |
263 | | - </includes> |
264 | | - </resource> |
265 | | - </resources> |
266 | 258 | <pluginManagement> |
267 | 259 | <plugins> |
268 | 260 | <plugin> |
|
324 | 316 | <artifactId>maven-clean-plugin</artifactId> |
325 | 317 | <version>${maven-clean-plugin.version}</version> |
326 | 318 | </plugin> |
| 319 | + <plugin> |
| 320 | + <groupId>org.codehaus.mojo</groupId> |
| 321 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 322 | + <version>${build.helper-maven-plugin.version}</version> |
| 323 | + <executions> |
| 324 | + <execution> |
| 325 | + <id>add-generated-sources</id> |
| 326 | + <goals> |
| 327 | + <goal>add-source</goal> |
| 328 | + </goals> |
| 329 | + <phase>generate-resources</phase> |
| 330 | + <configuration> |
| 331 | + <sources> |
| 332 | + <source>${project.build.directory}/generated-sources</source> |
| 333 | + </sources> |
| 334 | + </configuration> |
| 335 | + </execution> |
| 336 | + </executions> |
| 337 | + </plugin> |
327 | 338 | <plugin> |
328 | 339 | <groupId>org.apache.maven.plugins</groupId> |
329 | 340 | <artifactId>maven-resources-plugin</artifactId> |
330 | 341 | <version>${maven-resources-plugin.version}</version> |
| 342 | + <executions> |
| 343 | + <execution> |
| 344 | + <id>copy-const</id> |
| 345 | + <goals> |
| 346 | + <goal>copy-resources</goal> |
| 347 | + </goals> |
| 348 | + <phase>generate-sources</phase> |
| 349 | + <configuration> |
| 350 | + <outputDirectory>${project.build.directory}/generated-sources/land/oras/utils</outputDirectory> |
| 351 | + <resources> |
| 352 | + <resource> |
| 353 | + <directory>src/main/generated</directory> |
| 354 | + <filtering>true</filtering> |
| 355 | + <includes> |
| 356 | + <include>Versions.java</include> |
| 357 | + </includes> |
| 358 | + </resource> |
| 359 | + </resources> |
| 360 | + </configuration> |
| 361 | + </execution> |
| 362 | + </executions> |
331 | 363 | </plugin> |
332 | 364 | <plugin> |
333 | 365 | <groupId>org.apache.maven.plugins</groupId> |
|
556 | 588 | <groupId>org.apache.maven.plugins</groupId> |
557 | 589 | <artifactId>maven-source-plugin</artifactId> |
558 | 590 | </plugin> |
| 591 | + <plugin> |
| 592 | + <groupId>org.codehaus.mojo</groupId> |
| 593 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 594 | + </plugin> |
559 | 595 | </plugins> |
560 | 596 |
|
561 | 597 | </build> |
|
0 commit comments