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