pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>oh-my-scheduler</artifactId>
  7. <groupId>com.github.kfcfans</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>oh-my-scheduler-server</artifactId>
  12. <version>1.2.0</version>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <swagger.version>2.9.2</swagger.version>
  16. <springboot.version>2.2.6.RELEASE</springboot.version>
  17. <oms.common.version>1.2.0</oms.common.version>
  18. <mysql.version>8.0.19</mysql.version>
  19. <h2.db.version>1.4.200</h2.db.version>
  20. <zip4j.version>2.5.2</zip4j.version>
  21. <jgit.version>5.7.0.202003110725-r</jgit.version>
  22. <mvn.invoker.version>3.0.1</mvn.invoker.version>
  23. <commons.net.version>3.6</commons.net.version>
  24. <!-- 部署时跳过该module -->
  25. <maven.deploy.skip>true</maven.deploy.skip>
  26. </properties>
  27. <dependencies>
  28. <!-- oms-common -->
  29. <dependency>
  30. <groupId>com.github.kfcfans</groupId>
  31. <artifactId>oh-my-scheduler-common</artifactId>
  32. <version>${oms.common.version}</version>
  33. </dependency>
  34. <!-- mysql -->
  35. <dependency>
  36. <groupId>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. <version>${mysql.version}</version>
  39. </dependency>
  40. <!-- h2 database -->
  41. <dependency>
  42. <groupId>com.h2database</groupId>
  43. <artifactId>h2</artifactId>
  44. <version>${h2.db.version}</version>
  45. </dependency>
  46. <!-- SpringBoot -->
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-web</artifactId>
  50. <version>${springboot.version}</version>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter-tomcat</artifactId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-undertow</artifactId>
  61. <version>${springboot.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-websocket</artifactId>
  66. <version>${springboot.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-data-jpa</artifactId>
  71. <version>${springboot.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-data-mongodb</artifactId>
  76. <version>${springboot.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-mail</artifactId>
  81. <version>${springboot.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-test</artifactId>
  86. <version>${springboot.version}</version>
  87. <scope>test</scope>
  88. </dependency>
  89. <!-- zip4j(Zip操作) -->
  90. <dependency>
  91. <groupId>net.lingala.zip4j</groupId>
  92. <artifactId>zip4j</artifactId>
  93. <version>${zip4j.version}</version>
  94. </dependency>
  95. <!-- jGit(Git操作) -->
  96. <dependency>
  97. <groupId>org.eclipse.jgit</groupId>
  98. <artifactId>org.eclipse.jgit</artifactId>
  99. <version>${jgit.version}</version>
  100. </dependency>
  101. <!-- 时间工具类,NTP时间同步 -->
  102. <dependency>
  103. <groupId>commons-net</groupId>
  104. <artifactId>commons-net</artifactId>
  105. <version>${commons.net.version}</version>
  106. </dependency>
  107. <!-- Maven Invoker(编译 maven 项目) -->
  108. <dependency>
  109. <groupId>org.apache.maven.shared</groupId>
  110. <artifactId>maven-invoker</artifactId>
  111. <version>${mvn.invoker.version}</version>
  112. </dependency>
  113. <!-- swagger2 -->
  114. <dependency>
  115. <groupId>io.springfox</groupId>
  116. <artifactId>springfox-swagger2</artifactId>
  117. <version>${swagger.version}</version>
  118. </dependency>
  119. <!-- swagger2 ui -->
  120. <dependency>
  121. <groupId>io.springfox</groupId>
  122. <artifactId>springfox-swagger-ui</artifactId>
  123. <version>${swagger.version}</version>
  124. </dependency>
  125. </dependencies>
  126. <!-- SpringBoot专用的打包插件 -->
  127. <build>
  128. <plugins>
  129. <plugin>
  130. <groupId>org.springframework.boot</groupId>
  131. <artifactId>spring-boot-maven-plugin</artifactId>
  132. <version>${springboot.version}</version>
  133. <configuration>
  134. <mainClass>com.github.kfcfans.oms.server.OhMyApplication</mainClass>
  135. </configuration>
  136. <executions>
  137. <execution>
  138. <goals>
  139. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  140. </goals>
  141. </execution>
  142. </executions>
  143. </plugin>
  144. </plugins>
  145. </build>
  146. </project>