|
495 | 495 | </executions> |
496 | 496 | </plugin> |
497 | 497 |
|
| 498 | + |
| 499 | + <plugin> |
| 500 | + <groupId>org.codehaus.mojo</groupId> |
| 501 | + <artifactId>rpm-maven-plugin</artifactId> |
| 502 | + <version>2.2.0</version> |
| 503 | + <executions> |
| 504 | + <execution> |
| 505 | + <id>generate-rpm</id> |
| 506 | + <goals> |
| 507 | + <goal>rpm</goal> |
| 508 | + </goals> |
| 509 | + </execution> |
| 510 | + </executions> |
| 511 | + <configuration> |
| 512 | + <license>GPL (c) 2005, SWWDC</license> |
| 513 | + <distribution>Trash 2005</distribution> |
| 514 | + <group>Application/Collectors</group> |
| 515 | +<!-- <icon>src/main/resources/icon.gif</icon>--> |
| 516 | + <packager>SWWDC</packager> |
| 517 | + <prefix>/usr/local</prefix> |
| 518 | + <changelogFile>src/changelog</changelogFile> |
| 519 | + <defineStatements> |
| 520 | + <defineStatement>_unpackaged_files_terminate_build 0</defineStatement> |
| 521 | + </defineStatements> |
| 522 | + <mappings> |
| 523 | + <mapping> |
| 524 | + <directory>/opt/sql-boot</directory> |
| 525 | + <filemode>440</filemode> |
| 526 | + <username>sql-boot</username> |
| 527 | + <groupname>sql-boot-group</groupname> |
| 528 | + <sources> |
| 529 | + <source> |
| 530 | + <location>target/sql-boot-0.3.0-SNAPSHOT.jar</location> |
| 531 | + </source> |
| 532 | + </sources> |
| 533 | + </mapping> |
| 534 | + <mapping> |
| 535 | + <directory>/opt/sql-boot</directory> |
| 536 | + <filemode>440</filemode> |
| 537 | + <username>sql-boot</username> |
| 538 | + <groupname>sql-boot-group</groupname> |
| 539 | + <sources> |
| 540 | + <source> |
| 541 | + <location>src/main/resources/run</location> |
| 542 | + </source> |
| 543 | + </sources> |
| 544 | + </mapping> |
| 545 | + <mapping> |
| 546 | + <directory>/opt/sql-boot</directory> |
| 547 | + <filemode>440</filemode> |
| 548 | + <username>sql-boot</username> |
| 549 | + <groupname>sql-boot-group</groupname> |
| 550 | + <sources> |
| 551 | + <source> |
| 552 | + <location>src/main/resources/application.yml</location> |
| 553 | + </source> |
| 554 | + </sources> |
| 555 | + </mapping> |
| 556 | + <mapping> |
| 557 | + <directory>/opt/sql-boot/conf</directory> |
| 558 | + <filemode>440</filemode> |
| 559 | + <username>sql-boot</username> |
| 560 | + <groupname>sql-boot-group</groupname> |
| 561 | + <sources> |
| 562 | + <source> |
| 563 | + <location>conf</location> |
| 564 | + </source> |
| 565 | + </sources> |
| 566 | + </mapping> |
| 567 | + <mapping> |
| 568 | + <directory>/usr/lib/systemd/system</directory> |
| 569 | + <directoryIncluded>false</directoryIncluded> |
| 570 | + <filemode>644</filemode> |
| 571 | + <username>root</username> |
| 572 | + <groupname>root</groupname> |
| 573 | + <sources> |
| 574 | + <source> |
| 575 | + <location>src/main/resources/sql-boot.service</location> |
| 576 | + </source> |
| 577 | + </sources> |
| 578 | + </mapping> |
| 579 | + </mappings> |
| 580 | + <preinstallScriptlet> |
| 581 | + <script>echo "installing ${project.name} now"</script> |
| 582 | + </preinstallScriptlet> |
| 583 | +<!-- <postinstallScriptlet>--> |
| 584 | +<!-- <scriptFile>src/main/scripts/postinstall</scriptFile>--> |
| 585 | +<!-- <fileEncoding>utf-8</fileEncoding>--> |
| 586 | +<!-- <filter>true</filter>--> |
| 587 | +<!-- </postinstallScriptlet>--> |
| 588 | +<!-- <preremoveScriptlet>--> |
| 589 | +<!-- <scriptFile>src/main/scripts/preremove</scriptFile>--> |
| 590 | +<!-- <fileEncoding>utf-8</fileEncoding>--> |
| 591 | +<!-- </preremoveScriptlet>--> |
| 592 | + </configuration> |
| 593 | + </plugin> |
| 594 | + |
| 595 | + |
498 | 596 | </plugins> |
499 | 597 | </build> |
500 | 598 |
|
|
0 commit comments