pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.prac</groupId>
  7. <artifactId>simple</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <name>simple</name>
  11. <url>http://maven.apache.org</url>
  12. <properties>
  13. <encoding>UTF-8</encoding>
  14. <java-version>1.8</java-version>
  15. </properties>
  16. <parent>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-parent</artifactId>
  19. <version>2.3.5.RELEASE</version>
  20. </parent>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.mybatis.spring.boot</groupId>
  28. <artifactId>mybatis-spring-boot-starter</artifactId>
  29. <version>1.3.2</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>mysql</groupId>
  33. <artifactId>mysql-connector-java</artifactId>
  34. <scope>runtime</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.alibaba</groupId>
  38. <artifactId>druid-spring-boot-starter</artifactId>
  39. <version>1.1.10</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.projectlombok</groupId>
  43. <artifactId>lombok</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>fastjson</artifactId>
  48. <version>1.2.62</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.apache.commons</groupId>
  52. <artifactId>commons-lang3</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-data-redis</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.github.pagehelper</groupId>
  60. <artifactId>pagehelper-spring-boot-starter</artifactId>
  61. <version>1.2.10</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>cn.hutool</groupId>
  65. <artifactId>hutool-all</artifactId>
  66. <version>5.4.1</version>
  67. </dependency>
  68. <!--mqtt依赖-->
  69. <dependency>
  70. <groupId>org.eclipse.paho</groupId>
  71. <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
  72. <version>1.2.2</version>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. <configuration>
  81. <source>${java-version}</source> <!-- 源代码使用的JDK版本 -->
  82. <target>${java-version}</target> <!-- 需要生成的目标class文件的编译版本 -->
  83. <encoding>${encoding}</encoding><!-- 字符集编码 -->
  84. <skipTests>true</skipTests><!-- 跳过测试 -->
  85. </configuration>
  86. </plugin>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. <executions>
  91. <execution>
  92. <goals>
  93. <goal>repackage</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.mybatis.generator</groupId>
  100. <artifactId>mybatis-generator-maven-plugin</artifactId>
  101. <version>1.3.6</version>
  102. <configuration>
  103. <!-- mybatis-generator 配置文件存放地址 -->
  104. <configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
  105. <!-- <overwrite>true</overwrite> -->
  106. </configuration>
  107. <dependencies>
  108. <dependency>
  109. <groupId>mysql</groupId>
  110. <artifactId>mysql-connector-java</artifactId>
  111. <version>${mysql.version}</version>
  112. </dependency>
  113. </dependencies>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>