|
35 | 35 | <license.bundles.bootstrap>true</license.bundles.bootstrap>
|
36 | 36 | <license.bundles.jquery>true</license.bundles.jquery>
|
37 | 37 | <license.bundles.vega>true</license.bundles.vega>
|
| 38 | + <hbase.webapps.dir>hbase-webapps</hbase.webapps.dir> |
38 | 39 | </properties>
|
39 | 40 | <dependencies>
|
40 | 41 | <dependency>
|
|
449 | 450 | <skipAssembly>true</skipAssembly>
|
450 | 451 | </configuration>
|
451 | 452 | </plugin>
|
| 453 | + <plugin> |
| 454 | + <groupId>org.codehaus.mojo</groupId> |
| 455 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 456 | + <executions> |
| 457 | + <execution> |
| 458 | + <id>add-test-source</id> |
| 459 | + <goals> |
| 460 | + <goal>add-test-resource</goal> |
| 461 | + </goals> |
| 462 | + <phase>generate-test-sources</phase> |
| 463 | + <configuration> |
| 464 | + <!-- Add the hbase-webapps directory to the test resources --> |
| 465 | + <resources> |
| 466 | + <resource> |
| 467 | + <!-- Directory containing hbase-webapps --> |
| 468 | + <directory>target/${hbase.webapps.dir}</directory> |
| 469 | + <!-- Target directory under test-classes --> |
| 470 | + <targetPath>${hbase.webapps.dir}</targetPath> |
| 471 | + </resource> |
| 472 | + </resources> |
| 473 | + </configuration> |
| 474 | + </execution> |
| 475 | + </executions> |
| 476 | + </plugin> |
452 | 477 | <plugin>
|
453 | 478 | <groupId>org.apache.maven.plugins</groupId>
|
454 | 479 | <artifactId>maven-jar-plugin</artifactId>
|
455 |
| - <configuration> |
456 |
| - <!-- Exclude these 2 packages, because their dependency _binary_ files |
457 |
| - include the sources, and Maven 2.2 appears to add them to the sources to compile, |
458 |
| - weird --> |
459 |
| - <excludes> |
460 |
| - <exclude>org/apache/jute/**</exclude> |
461 |
| - <exclude>org/apache/zookeeper/**</exclude> |
462 |
| - <exclude>**/*.jsp</exclude> |
463 |
| - <exclude>hbase-site.xml</exclude> |
464 |
| - <exclude>hdfs-site.xml</exclude> |
465 |
| - <exclude>log4j.properties</exclude> |
466 |
| - <exclude>mapred-queues.xml</exclude> |
467 |
| - <exclude>mapred-site.xml</exclude> |
468 |
| - </excludes> |
469 |
| - </configuration> |
| 480 | + <executions> |
| 481 | + <!-- Exclude specified file(s) from the default JAR --> |
| 482 | + <execution> |
| 483 | + <id>default-jar</id> |
| 484 | + <goals> |
| 485 | + <goal>jar</goal> |
| 486 | + </goals> |
| 487 | + <phase>package</phase> |
| 488 | + <configuration> |
| 489 | + <excludes> |
| 490 | + <!-- Exclude these 2 packages, because their dependency _binary_ files |
| 491 | + include the sources, and Maven 2.2 appears to add them to the sources to compile, |
| 492 | + weird --> |
| 493 | + <exclude>org/apache/jute/**</exclude> |
| 494 | + <exclude>org/apache/zookeeper/**</exclude> |
| 495 | + <exclude>**/*.jsp</exclude> |
| 496 | + <exclude>hbase-site.xml</exclude> |
| 497 | + <exclude>hdfs-site.xml</exclude> |
| 498 | + <exclude>log4j.properties</exclude> |
| 499 | + <exclude>mapred-queues.xml</exclude> |
| 500 | + <exclude>mapred-site.xml</exclude> |
| 501 | + <!-- NOTE: We have the below exclude only for the default JAR --> |
| 502 | + <exclude>**/hbase-webapps/**</exclude> |
| 503 | + </excludes> |
| 504 | + </configuration> |
| 505 | + </execution> |
| 506 | + <!-- Copy of default jar exclusions, minus not removing hbase-webapps--> |
| 507 | + <execution> |
| 508 | + <id>test-jar</id> |
| 509 | + <goals> |
| 510 | + <goal>test-jar</goal> |
| 511 | + </goals> |
| 512 | + <phase>package</phase> |
| 513 | + <configuration> |
| 514 | + <classifier>tests</classifier> |
| 515 | + <excludes> |
| 516 | + <exclude>org/apache/jute/**</exclude> |
| 517 | + <exclude>org/apache/zookeeper/**</exclude> |
| 518 | + <exclude>**/*.jsp</exclude> |
| 519 | + <exclude>hbase-site.xml</exclude> |
| 520 | + <exclude>hdfs-site.xml</exclude> |
| 521 | + <exclude>log4j.properties</exclude> |
| 522 | + <exclude>mapred-queues.xml</exclude> |
| 523 | + <exclude>mapred-site.xml</exclude> |
| 524 | + <!-- We do not want to exclude hbase-webapps from tests. We actually intentionally |
| 525 | + add this directory to out test resources. See HBASE-28921 for details! --> |
| 526 | + </excludes> |
| 527 | + </configuration> |
| 528 | + </execution> |
| 529 | + </executions> |
470 | 530 | </plugin>
|
471 | 531 | <!-- General ant tasks, bound to different build phases -->
|
472 | 532 | <plugin>
|
|
0 commit comments