pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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>ruoyi</artifactId>
  7. <groupId>com.ruoyi</groupId>
  8. <version>3.8.3</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>oneDay-tour</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- swagger3-->
  24. <dependency>
  25. <groupId>io.springfox</groupId>
  26. <artifactId>springfox-boot-starter</artifactId>
  27. </dependency>
  28. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  29. <dependency>
  30. <groupId>io.swagger</groupId>
  31. <artifactId>swagger-models</artifactId>
  32. <version>1.6.2</version>
  33. </dependency>
  34. <!-- Mysql驱动包 -->
  35. <dependency>
  36. <groupId>mysql</groupId>
  37. <artifactId>mysql-connector-java</artifactId>
  38. </dependency>
  39. <!-- 核心模块-->
  40. <dependency>
  41. <groupId>com.ruoyi</groupId>
  42. <artifactId>ruoyi-framework</artifactId>
  43. </dependency>
  44. <!-- 定时任务-->
  45. <dependency>
  46. <groupId>com.ruoyi</groupId>
  47. <artifactId>ruoyi-quartz</artifactId>
  48. </dependency>
  49. <!-- 代码生成-->
  50. <dependency>
  51. <groupId>com.ruoyi</groupId>
  52. <artifactId>ruoyi-generator</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.projectlombok</groupId>
  56. <artifactId>lombok</artifactId>
  57. </dependency>
  58. </dependencies>
  59. <build>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-maven-plugin</artifactId>
  64. <version>2.1.1.RELEASE</version>
  65. <configuration>
  66. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  67. </configuration>
  68. <executions>
  69. <execution>
  70. <goals>
  71. <goal>repackage</goal>
  72. </goals>
  73. </execution>
  74. </executions>
  75. </plugin>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-war-plugin</artifactId>
  79. <version>3.0.0</version>
  80. <configuration>
  81. <failOnMissingWebXml>false</failOnMissingWebXml>
  82. <warName>${project.artifactId}</warName>
  83. </configuration>
  84. </plugin>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <configuration>
  89. <source>8</source>
  90. <target>8</target>
  91. </configuration>
  92. </plugin>
  93. <!-- <plugin>-->
  94. <!-- <groupId>com.spotify</groupId>-->
  95. <!-- <artifactId>docker-maven-plugin</artifactId>-->
  96. <!-- <version>1.0.0</version>-->
  97. <!-- &lt;!&ndash;将插件绑定在某个phase执行&ndash;&gt;-->
  98. <!-- <executions>-->
  99. <!-- <execution>-->
  100. <!-- <id>build-image</id>-->
  101. <!-- &lt;!&ndash;用户只需执行mvn package ,就会自动执行mvn docker:build&ndash;&gt;-->
  102. <!-- <phase>package</phase>-->
  103. <!-- <goals>-->
  104. <!-- <goal>build</goal>-->
  105. <!-- </goals>-->
  106. <!-- </execution>-->
  107. <!-- </executions>-->
  108. <!-- <configuration>-->
  109. <!-- &lt;!&ndash;指定生成的镜像名,这里是我们的作者名+项目名&ndash;&gt;-->
  110. <!-- <imageName>lizhipeng/${project.artifactId}</imageName>-->
  111. <!-- &lt;!&ndash;指定标签 这里指定的是镜像的版本,我们默认版本是latest&ndash;&gt;-->
  112. <!-- <imageTags>-->
  113. <!-- <imageTag>latest</imageTag>-->
  114. <!-- </imageTags>-->
  115. <!-- &lt;!&ndash;指定基础镜像jdk1.8&ndash;&gt;-->
  116. <!-- <baseImage>java</baseImage>-->
  117. <!-- &lt;!&ndash;-->
  118. <!-- 镜像制作人本人信息-->
  119. <!-- <maintainer>bruceliu@email.com</maintainer>-->
  120. <!-- &ndash;&gt;-->
  121. <!-- &lt;!&ndash;切换到ROOT目录&ndash;&gt;-->
  122. <!-- <workdir>/ROOT</workdir>-->
  123. <!-- &lt;!&ndash;查看我们的java版本&ndash;&gt;-->
  124. <!-- <cmd>["java", "-version"]</cmd>-->
  125. <!-- &lt;!&ndash;${project.build.finalName}.jar是打包后生成的jar包的名字&ndash;&gt;-->
  126. <!-- <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>-->
  127. <!-- &lt;!&ndash;指定远程 docker api地址&ndash;&gt;-->
  128. <!-- <dockerHost>http://119.45.134.58:12315</dockerHost>-->
  129. <!-- &lt;!&ndash; 这里是复制 jar 包到 docker 容器指定目录配置 &ndash;&gt;-->
  130. <!-- <resources>-->
  131. <!-- <resource>-->
  132. <!-- <targetPath>/</targetPath>-->
  133. <!-- &lt;!&ndash;jar 包所在的路径 此处配置的 即对应 target 目录&ndash;&gt;-->
  134. <!-- <directory>${project.build.directory}</directory>-->
  135. <!-- &lt;!&ndash;用于指定需要复制的文件 需要包含的 jar包 ,这里对应的是 Dockerfile中添加的文件名 &ndash;&gt;-->
  136. <!-- <include>${project.build.finalName}.jar</include>-->
  137. <!-- </resource>-->
  138. <!-- </resources>-->
  139. <!-- </configuration>-->
  140. <!-- </plugin>-->
  141. </plugins>
  142. <finalName>${project.artifactId}</finalName>
  143. </build>
  144. </project>