pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.vber</groupId>
  8. <artifactId>VberAdmin</artifactId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <artifactId>vber-generator-web</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-test</artifactId>
  16. <scope>test</scope>
  17. </dependency>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <scope>test</scope>
  22. </dependency>
  23. <!-- SpringBoot集成thymeleaf模板 -->
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  27. </dependency>
  28. <!-- spring-boot-devtools -->
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-devtools</artifactId>
  32. <optional>true</optional> <!-- 表示依赖不会传递 -->
  33. </dependency>
  34. <!-- swagger3-->
  35. <dependency>
  36. <groupId>io.springfox</groupId>
  37. <artifactId>springfox-boot-starter</artifactId>
  38. </dependency>
  39. <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
  40. <dependency>
  41. <groupId>io.swagger</groupId>
  42. <artifactId>swagger-models</artifactId>
  43. <version>1.6.2</version>
  44. </dependency>
  45. <!-- Mysql驱动包 -->
  46. <dependency>
  47. <groupId>mysql</groupId>
  48. <artifactId>mysql-connector-java</artifactId>
  49. </dependency>
  50. <!-- SpringBoot Web容器 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-web</artifactId>
  54. </dependency>
  55. <!-- SpringBoot 拦截器 -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-aop</artifactId>
  59. </dependency>
  60. <!-- 阿里数据库连接池 -->
  61. <dependency>
  62. <groupId>com.alibaba</groupId>
  63. <artifactId>druid-spring-boot-starter</artifactId>
  64. </dependency>
  65. <!-- 验证码 -->
  66. <dependency>
  67. <groupId>pro.fessional</groupId>
  68. <artifactId>kaptcha</artifactId>
  69. <exclusions>
  70. <exclusion>
  71. <artifactId>javax.servlet-api</artifactId>
  72. <groupId>javax.servlet</groupId>
  73. </exclusion>
  74. </exclusions>
  75. </dependency>
  76. <!-- 获取系统信息 -->
  77. <dependency>
  78. <groupId>com.github.oshi</groupId>
  79. <artifactId>oshi-core</artifactId>
  80. </dependency>
  81. <!-- 代码生成-->
  82. <dependency>
  83. <groupId>com.vber</groupId>
  84. <artifactId>vber-generator</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-test</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-maven-plugin</artifactId>
  97. <version>2.1.1.RELEASE</version>
  98. <configuration>
  99. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  100. </configuration>
  101. <executions>
  102. <execution>
  103. <goals>
  104. <goal>repackage</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-war-plugin</artifactId>
  112. <version>3.1.0</version>
  113. <configuration>
  114. <failOnMissingWebXml>false</failOnMissingWebXml>
  115. <warName>${project.artifactId}</warName>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. <finalName>${project.artifactId}</finalName>
  120. </build>
  121. </project>