|
303 | 303 | <build> |
304 | 304 | <plugins> |
305 | 305 | <plugin> |
306 | | - <artifactId>maven-antrun-plugin</artifactId> |
| 306 | + <groupId>org.apache.hadoop</groupId> |
| 307 | + <artifactId>hadoop-maven-plugins</artifactId> |
307 | 308 | <executions> |
308 | 309 | <execution> |
309 | | - <id>create-parallel-tests-dirs</id> |
310 | | - <phase>test-compile</phase> |
311 | | - <configuration> |
312 | | - <target> |
313 | | - <script language="javascript"><![CDATA[ |
314 | | - var baseDirs = [ |
315 | | - project.getProperty("test.build.data"), |
316 | | - project.getProperty("test.build.dir"), |
317 | | - project.getProperty("hadoop.tmp.dir") |
318 | | - ]; |
319 | | - for (var i in baseDirs) { |
320 | | - for (var j = 1; j <= ${testsThreadCount}; ++j) { |
321 | | - var mkdir = project.createTask("mkdir"); |
322 | | - mkdir.setDir(new java.io.File(baseDirs[i], j)); |
323 | | - mkdir.perform(); |
324 | | - } |
325 | | - } |
326 | | - ]]></script> |
327 | | - </target> |
328 | | - </configuration> |
| 310 | + <id>parallel-tests-createdir</id> |
329 | 311 | <goals> |
330 | | - <goal>run</goal> |
| 312 | + <goal>parallel-tests-createdir</goal> |
331 | 313 | </goals> |
332 | 314 | </execution> |
333 | 315 | </executions> |
|
342 | 324 | <goal>test</goal> |
343 | 325 | </goals> |
344 | 326 | <configuration> |
345 | | - <forkCount>1</forkCount> |
346 | 327 | <forkCount>${testsThreadCount}</forkCount> |
347 | 328 | <reuseForks>false</reuseForks> |
348 | 329 | <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine> |
|
408 | 389 | <goal>verify</goal> |
409 | 390 | </goals> |
410 | 391 | <configuration> |
411 | | - <forkCount>1</forkCount> |
412 | 392 | <forkCount>${testsThreadCount}</forkCount> |
413 | 393 | <reuseForks>false</reuseForks> |
414 | 394 | <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine> |
|
486 | 466 | <build> |
487 | 467 | <plugins> |
488 | 468 | <plugin> |
489 | | - <artifactId>maven-antrun-plugin</artifactId> |
| 469 | + <groupId>org.apache.hadoop</groupId> |
| 470 | + <artifactId>hadoop-maven-plugins</artifactId> |
490 | 471 | <executions> |
491 | 472 | <execution> |
492 | | - <id>create-parallel-tests-dirs</id> |
493 | | - <phase>test-compile</phase> |
494 | | - <configuration> |
495 | | - <target> |
496 | | - <script language="javascript"><![CDATA[ |
497 | | - var baseDirs = [ |
498 | | - project.getProperty("test.build.data"), |
499 | | - project.getProperty("test.build.dir"), |
500 | | - project.getProperty("hadoop.tmp.dir") |
501 | | - ]; |
502 | | - for (var i in baseDirs) { |
503 | | - for (var j = 1; j <= ${testsThreadCount}; ++j) { |
504 | | - var mkdir = project.createTask("mkdir"); |
505 | | - mkdir.setDir(new java.io.File(baseDirs[i], j)); |
506 | | - mkdir.perform(); |
507 | | - } |
508 | | - } |
509 | | - ]]></script> |
510 | | - </target> |
511 | | - </configuration> |
| 473 | + <id>parallel-tests-createdir</id> |
512 | 474 | <goals> |
513 | | - <goal>run</goal> |
| 475 | + <goal>parallel-tests-createdir</goal> |
514 | 476 | </goals> |
515 | 477 | </execution> |
516 | 478 | </executions> |
|
652 | 614 | <build> |
653 | 615 | <plugins> |
654 | 616 | <plugin> |
655 | | - <artifactId>maven-antrun-plugin</artifactId> |
| 617 | + <groupId>org.apache.hadoop</groupId> |
| 618 | + <artifactId>hadoop-maven-plugins</artifactId> |
656 | 619 | <executions> |
657 | 620 | <execution> |
658 | | - <id>create-parallel-tests-dirs</id> |
659 | | - <phase>test-compile</phase> |
660 | | - <configuration> |
661 | | - <target> |
662 | | - <script language="javascript"><![CDATA[ |
663 | | - var baseDirs = [ |
664 | | - project.getProperty("test.build.data"), |
665 | | - project.getProperty("test.build.dir"), |
666 | | - project.getProperty("hadoop.tmp.dir") |
667 | | - ]; |
668 | | - for (var i in baseDirs) { |
669 | | - for (var j = 1; j <= ${testsThreadCount}; ++j) { |
670 | | - var mkdir = project.createTask("mkdir"); |
671 | | - mkdir.setDir(new java.io.File(baseDirs[i], j)); |
672 | | - mkdir.perform(); |
673 | | - } |
674 | | - } |
675 | | - ]]></script> |
676 | | - </target> |
677 | | - </configuration> |
| 621 | + <id>parallel-tests-createdir</id> |
678 | 622 | <goals> |
679 | | - <goal>run</goal> |
| 623 | + <goal>parallel-tests-createdir</goal> |
680 | 624 | </goals> |
681 | 625 | </execution> |
682 | 626 | </executions> |
|
691 | 635 | <goal>test</goal> |
692 | 636 | </goals> |
693 | 637 | <configuration> |
694 | | - <forkCount>1</forkCount> |
695 | 638 | <forkCount>${testsThreadCount}</forkCount> |
696 | 639 | <reuseForks>false</reuseForks> |
697 | 640 | <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine> |
|
0 commit comments