|
7 | 7 | the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
8 | 8 | OF ANY KIND, either express or implied. See the License for the specific language |
9 | 9 | governing permissions and limitations under the License. --> |
10 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 11 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
11 | 12 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
12 | 13 | <modelVersion>4.0.0</modelVersion> |
13 | 14 | <artifactId>cloud-client-ui</artifactId> |
|
17 | 18 | <groupId>org.apache.cloudstack</groupId> |
18 | 19 | <artifactId>cloudstack</artifactId> |
19 | 20 | <version>4.3.0-SNAPSHOT</version> |
20 | | - </parent> |
| 21 | + </parent> |
21 | 22 | <dependencies> |
22 | 23 | <dependency> |
23 | 24 | <groupId>org.apache.cloudstack</groupId> |
|
275 | 276 | <artifactId>cloud-plugin-host-anti-affinity</artifactId> |
276 | 277 | <version>${project.version}</version> |
277 | 278 | </dependency> |
278 | | - <dependency> |
279 | | - <groupId>org.apache.cloudstack</groupId> |
280 | | - <artifactId>cloud-systemvm</artifactId> |
281 | | - <version>${project.version}</version> |
282 | | - <type>pom</type> |
283 | | - </dependency> |
284 | 279 | </dependencies> |
285 | 280 | <build> |
286 | 281 | <plugins> |
|
351 | 346 | <artifactId>maven-antrun-plugin</artifactId> |
352 | 347 | <version>1.7</version> |
353 | 348 | <executions> |
354 | | - <!-- Copy the systemvm in the package phase as it is generated by console-proxy |
355 | | - in the package phase. --> |
356 | | - <execution> |
357 | | - <id>copy-systemvm</id> |
358 | | - <phase>process-resources</phase> |
359 | | - <goals> |
360 | | - <goal>run</goal> |
361 | | - </goals> |
362 | | - <configuration> |
363 | | - <target> |
364 | | - <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes/vms"> |
365 | | - <fileset dir="${basedir}/../systemvm/dist"> |
366 | | - <include name="systemvm.zip" /> |
367 | | - <include name="systemvm.iso" /> |
368 | | - </fileset> |
369 | | - </copy> |
370 | | - </target> |
371 | | - </configuration> |
372 | | - </execution> |
373 | 349 | <execution> |
374 | 350 | <id>generate-resource</id> |
375 | 351 | <phase>generate-resources</phase> |
|
378 | 354 | </goals> |
379 | 355 | <configuration> |
380 | 356 | <target> |
381 | | - <copy |
382 | | - todir="${basedir}/target/generated-webapp/WEB-INF/classes/scripts"> |
383 | | - <fileset dir="${basedir}/../scripts" /> |
| 357 | + <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes/scripts"> |
| 358 | + <fileset dir="${basedir}/../scripts"/> |
384 | 359 | </copy> |
385 | 360 | <!-- CLOUDSTACK-1304 --> |
386 | | - <chmod perm="755" file="${basedir}/target/generated-webapp/WEB-INF/classes/scripts/**" type="both" /> |
| 361 | + <chmod perm="755" |
| 362 | + file="${basedir}/target/generated-webapp/WEB-INF/classes/scripts/**" type="both"/> |
387 | 363 | <copy todir="${basedir}/target/generated-webapp/WEB-INF/"> |
388 | 364 | <fileset dir="${basedir}/WEB-INF/"> |
389 | | - <include name="web.xml" /> |
| 365 | + <include name="web.xml"/> |
390 | 366 | </fileset> |
391 | 367 | </copy> |
392 | 368 | <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
393 | 369 | <fileset dir="${basedir}/WEB-INF/classes"> |
394 | | - <include name="resources/**/*" /> |
| 370 | + <include name="resources/**/*"/> |
395 | 371 | </fileset> |
396 | 372 | </copy> |
397 | 373 | <copy todir="${basedir}/target/generated-webapp"> |
398 | | - <fileset dir="${basedir}/../ui" /> |
| 374 | + <fileset dir="${basedir}/../ui"/> |
399 | 375 | </copy> |
400 | | - <copy overwrite="true" |
401 | | - todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
| 376 | + <copy overwrite="true" todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
402 | 377 | <fileset dir="${basedir}/tomcatconf"> |
403 | | - <include name="*.in" /> |
| 378 | + <include name="*.in"/> |
404 | 379 | </fileset> |
405 | | - <globmapper from="*.in" to="*" /> |
| 380 | + <globmapper from="*.in" to="*"/> |
406 | 381 | <filterchain> |
407 | 382 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
408 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 383 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
409 | 384 | </filterreader> |
410 | 385 | </filterchain> |
411 | 386 | </copy> |
412 | | - <copy overwrite="true" |
413 | | - todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
| 387 | + <copy overwrite="true" todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
414 | 388 | <fileset dir="${basedir}/tomcatconf"> |
415 | | - <include name="*.in" /> |
| 389 | + <include name="*.in"/> |
416 | 390 | </fileset> |
417 | | - <globmapper from="*.in" to="*" /> |
| 391 | + <globmapper from="*.in" to="*"/> |
418 | 392 | <filterchain> |
419 | 393 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
420 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 394 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
421 | 395 | </filterreader> |
422 | 396 | </filterchain> |
423 | 397 | </copy> |
424 | 398 | <copy overwrite="true" todir="${basedir}/target/utilities/bin"> |
425 | 399 | <fileset dir="${basedir}/../setup/bindir"> |
426 | | - <include name="*.in" /> |
| 400 | + <include name="*.in"/> |
427 | 401 | </fileset> |
428 | | - <globmapper from="*.in" to="*" /> |
| 402 | + <globmapper from="*.in" to="*"/> |
429 | 403 | <filterchain> |
430 | 404 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
431 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 405 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
432 | 406 | </filterreader> |
433 | 407 | </filterchain> |
434 | 408 | </copy> |
435 | 409 | <copy overwrite="true" todir="${basedir}/target/utilities/bin"> |
436 | 410 | <fileset dir="${basedir}/bindir"> |
437 | | - <include name="*.in" /> |
| 411 | + <include name="*.in"/> |
438 | 412 | </fileset> |
439 | | - <globmapper from="*.in" to="*" /> |
| 413 | + <globmapper from="*.in" to="*"/> |
440 | 414 | <filterchain> |
441 | 415 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
442 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 416 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
443 | 417 | </filterreader> |
444 | 418 | </filterchain> |
445 | 419 | </copy> |
446 | 420 | <copy overwrite="true" todir="${basedir}/target/utilities/scripts/db"> |
447 | 421 | <fileset dir="${basedir}/../setup/db"> |
448 | | - <include name="**/*" /> |
| 422 | + <include name="**/*"/> |
449 | 423 | </fileset> |
450 | 424 | <filterchain> |
451 | 425 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
452 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 426 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
453 | 427 | </filterreader> |
454 | 428 | </filterchain> |
455 | 429 | </copy> |
456 | 430 | <copy overwrite="true" todir="${basedir}/target/conf"> |
457 | 431 | <fileset dir="${basedir}/tomcatconf"> |
458 | | - <include name="*.in" /> |
| 432 | + <include name="*.in"/> |
459 | 433 | </fileset> |
460 | | - <globmapper from="*.in" to="*" /> |
| 434 | + <globmapper from="*.in" to="*"/> |
461 | 435 | <filterchain> |
462 | 436 | <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
463 | | - <param type="propertiesfile" value="${cs.replace.properties}" /> |
| 437 | + <param type="propertiesfile" value="${cs.replace.properties}"/> |
464 | 438 | </filterreader> |
465 | 439 | </filterchain> |
466 | 440 | </copy> |
467 | 441 | <copy overwrite="true" todir="${basedir}/target/conf"> |
468 | 442 | <fileset dir="${basedir}/tomcatconf"> |
469 | | - <exclude name="*.in" /> |
| 443 | + <exclude name="*.in"/> |
470 | 444 | </fileset> |
471 | 445 | </copy> |
472 | 446 | </target> |
|
484 | 458 | <replaceregexp |
485 | 459 | file="${basedir}/target/generated-webapp/WEB-INF/classes/environment.properties" |
486 | 460 | match="cloud-stack-components-specification=.*" |
487 | | - replace="cloud-stack-components-specification=components-nonoss.xml" |
488 | | - byline="true" /> |
| 461 | + replace="cloud-stack-components-specification=components-nonoss.xml" byline="true" |
| 462 | + /> |
489 | 463 | </target> |
490 | 464 | </configuration> |
491 | 465 | </execution> |
|
498 | 472 | <configuration> |
499 | 473 | <target if="${simulator}"> |
500 | 474 | <echo>test</echo> |
501 | | - <replaceregexp |
502 | | - file="${basedir}/target/generated-webapp/WEB-INF/web.xml" |
503 | | - match="classpath:componentContext.xml" replace="classpath:simulatorComponentContext.xml" |
504 | | - byline="true" /> |
| 475 | + <replaceregexp file="${basedir}/target/generated-webapp/WEB-INF/web.xml" |
| 476 | + match="classpath:componentContext.xml" |
| 477 | + replace="classpath:simulatorComponentContext.xml" byline="true"/> |
505 | 478 | </target> |
506 | 479 | </configuration> |
507 | 480 | </execution> |
|
513 | 486 | </goals> |
514 | 487 | <configuration> |
515 | 488 | <target if="${nonoss}"> |
516 | | - <replaceregexp |
517 | | - file="${basedir}/target/generated-webapp/WEB-INF/web.xml" |
518 | | - match="classpath:componentContext.xml" replace="classpath:nonossComponentContext.xml" |
519 | | - byline="true" /> |
| 489 | + <replaceregexp file="${basedir}/target/generated-webapp/WEB-INF/web.xml" |
| 490 | + match="classpath:componentContext.xml" |
| 491 | + replace="classpath:nonossComponentContext.xml" byline="true"/> |
520 | 492 | <copy overwrite="true" |
521 | 493 | todir="${basedir}/target/generated-webapp/WEB-INF/classes/scripts"> |
522 | | - <fileset |
523 | | - dir="${basedir}/../plugins/network-elements/cisco-vnmc/scripts"> |
524 | | - <include name="**/*" /> |
| 494 | + <fileset dir="${basedir}/../plugins/network-elements/cisco-vnmc/scripts"> |
| 495 | + <include name="**/*"/> |
525 | 496 | </fileset> |
526 | 497 | </copy> |
527 | 498 | </target> |
|
539 | 510 | <replaceregexp |
540 | 511 | file="${basedir}/target/generated-webapp/WEB-INF/classes/applicationContext.xml" |
541 | 512 | match="com.cloud.consoleproxy.ConsoleProxyManagerImpl" |
542 | | - replace="com.cloud.consoleproxy.StaticConsoleProxyManager" |
543 | | - byline="true" /> |
| 513 | + replace="com.cloud.consoleproxy.StaticConsoleProxyManager" byline="true"/> |
544 | 514 | </target> |
545 | 515 | </configuration> |
546 | 516 | </execution> |
|
592 | 562 | <pluginExecutions> |
593 | 563 | <pluginExecution> |
594 | 564 | <pluginExecutionFilter> |
595 | | - <groupId> |
596 | | - org.apache.maven.plugins |
597 | | - </groupId> |
598 | | - <artifactId> |
599 | | - maven-antrun-plugin |
600 | | - </artifactId> |
| 565 | + <groupId> org.apache.maven.plugins </groupId> |
| 566 | + <artifactId> maven-antrun-plugin </artifactId> |
601 | 567 | <versionRange>[1.7,)</versionRange> |
602 | 568 | <goals> |
603 | 569 | <goal>run</goal> |
604 | 570 | </goals> |
605 | 571 | </pluginExecutionFilter> |
606 | 572 | <action> |
607 | | - <ignore /> |
| 573 | + <ignore/> |
608 | 574 | </action> |
609 | 575 | </pluginExecution> |
610 | 576 | </pluginExecutions> |
|
615 | 581 | </pluginManagement> |
616 | 582 | </build> |
617 | 583 | <profiles> |
| 584 | + <profile> |
| 585 | + <id>systemvm</id> |
| 586 | + <activation> |
| 587 | + <property> |
| 588 | + <name>systemvm</name> |
| 589 | + </property> |
| 590 | + </activation> |
| 591 | + <dependencies> |
| 592 | + <dependency> |
| 593 | + <groupId>org.apache.cloudstack</groupId> |
| 594 | + <artifactId>cloud-systemvm</artifactId> |
| 595 | + <version>${project.version}</version> |
| 596 | + <type>pom</type> |
| 597 | + </dependency> |
| 598 | + </dependencies> |
| 599 | + <build> |
| 600 | + <plugins> |
| 601 | + <plugin> |
| 602 | + <artifactId>maven-antrun-plugin</artifactId> |
| 603 | + <version>1.7</version> |
| 604 | + <executions> |
| 605 | + <!-- Copy the systemvm in the package phase as it is generated by console-proxy |
| 606 | + in the package phase. --> |
| 607 | + <execution> |
| 608 | + <id>copy-systemvm</id> |
| 609 | + <phase>process-resources</phase> |
| 610 | + <goals> |
| 611 | + <goal>run</goal> |
| 612 | + </goals> |
| 613 | + <configuration> |
| 614 | + <target> |
| 615 | + <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes/vms"> |
| 616 | + <fileset dir="${basedir}/../systemvm/dist"> |
| 617 | + <include name="systemvm.zip"/> |
| 618 | + <include name="systemvm.iso"/> |
| 619 | + </fileset> |
| 620 | + </copy> |
| 621 | + </target> |
| 622 | + </configuration> |
| 623 | + </execution> |
| 624 | + </executions> |
| 625 | + </plugin> |
| 626 | + </plugins> |
| 627 | + </build> |
| 628 | + </profile> |
618 | 629 | <profile> |
619 | 630 | <id>simulator</id> |
620 | 631 | <activation> |
|
0 commit comments