pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (c) 2018-2025, lengleng All rights reserved.
  4. ~
  5. ~ Redistribution and use in source and binary forms, with or without
  6. ~ modification, are permitted provided that the following conditions are met:
  7. ~
  8. ~ Redistributions of source code must retain the above copyright notice,
  9. ~ this list of conditions and the following disclaimer.
  10. ~ Redistributions in binary form must reproduce the above copyright
  11. ~ notice, this list of conditions and the following disclaimer in the
  12. ~ documentation and/or other materials provided with the distribution.
  13. ~ Neither the name of the pig4cloud.com developer nor the names of its
  14. ~ contributors may be used to endorse or promote products derived from
  15. ~ this software without specific prior written permission.
  16. ~ Author: lengleng (wangiegie@gmail.com)
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <parent>
  22. <groupId>com.pig4cloud</groupId>
  23. <artifactId>pigx-visual</artifactId>
  24. <version>${pigx.version}</version>
  25. </parent>
  26. <artifactId>pigx-daemon</artifactId>
  27. <packaging>jar</packaging>
  28. <name>pigx-daemon</name>
  29. <description>后台跑批定时任务模块</description>
  30. <dependencies>
  31. <!--配置中心客户端-->
  32. <dependency>
  33. <groupId>org.springframework.cloud</groupId>
  34. <artifactId>spring-cloud-starter-config</artifactId>
  35. </dependency>
  36. <!--跑批任务-->
  37. <dependency>
  38. <groupId>com.pig4cloud</groupId>
  39. <artifactId>pigx-common-job</artifactId>
  40. <version>${pigx.version}</version>
  41. </dependency>
  42. <!--mybatis-->
  43. <dependency>
  44. <groupId>com.baomidou</groupId>
  45. <artifactId>mybatis-plus-boot-starter</artifactId>
  46. <version>${mbp.boot.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. </dependency>
  52. <!--ZK 依赖-->
  53. <dependency>
  54. <groupId>org.apache.curator</groupId>
  55. <artifactId>curator-framework</artifactId>
  56. <version>${curator.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.curator</groupId>
  60. <artifactId>curator-recipes</artifactId>
  61. <version>${curator.version}</version>
  62. </dependency>
  63. <!--swagger 内置安全模块-->
  64. <dependency>
  65. <groupId>com.pig4cloud</groupId>
  66. <artifactId>pigx-common-swagger</artifactId>
  67. <version>${pigx.version}</version>
  68. </dependency>
  69. <!--web 模块-->
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-starter-web</artifactId>
  73. <exclusions>
  74. <!--排除tomcat依赖-->
  75. <exclusion>
  76. <artifactId>spring-boot-starter-tomcat</artifactId>
  77. <groupId>org.springframework.boot</groupId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. <!--undertow容器-->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-undertow</artifactId>
  85. </dependency>
  86. </dependencies>
  87. <build>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <configuration>
  93. <finalName>${project.name}</finalName>
  94. </configuration>
  95. </plugin>
  96. <plugin>
  97. <groupId>com.spotify</groupId>
  98. <artifactId>docker-maven-plugin</artifactId>
  99. <version>0.4.12</version>
  100. <configuration>
  101. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  102. <dockerHost>${docker.url}</dockerHost>
  103. <dockerDirectory>${project.basedir}</dockerDirectory>
  104. <resources>
  105. <resource>
  106. <targetPath>/</targetPath>
  107. <directory>${project.build.directory}</directory>
  108. <include>${project.build.finalName}.jar</include>
  109. </resource>
  110. </resources>
  111. <serverId>docker-hub</serverId>
  112. <registryUrl>https://index.docker.io/v1/</registryUrl>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>