pom.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yushu</groupId>
  6. <artifactId>iot</artifactId>
  7. <version>${revision}</version>
  8. <packaging>pom</packaging>
  9. <name>iot</name>
  10. <description>iot项目父工程</description>
  11. <properties>
  12. <revision>1.0.0</revision>
  13. <!-- Maven 相关 -->
  14. <java.version>1.8</java.version>
  15. <maven.compiler.source>${java.version}</maven.compiler.source>
  16. <maven.compiler.target>${java.version}</maven.compiler.target>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <!-- Maven Plugin Versions -->
  20. <spring-boot-maven-plugin.version>2.4.2</spring-boot-maven-plugin.version>
  21. <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version>
  22. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  23. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  24. <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
  25. <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
  26. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  27. </properties>
  28. <modules>
  29. <module>iot-dependencies</module>
  30. <module>iot-framework</module>
  31. <module>iot-business</module>
  32. <module>iot-admin-server</module>
  33. <!-- <module>spring-cloud-alibaba-examples</module>-->
  34. <module>demo</module>
  35. </modules>
  36. <dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>com.yushu</groupId>
  40. <artifactId>iot-dependencies</artifactId>
  41. <version>${revision}</version>
  42. <type>pom</type>
  43. <scope>import</scope>
  44. </dependency>
  45. </dependencies>
  46. </dependencyManagement>
  47. <!-- 使用 aliyun 的 Maven 源,提升下载速度 -->
  48. <repositories>
  49. <repository>
  50. <id>aliyun</id>
  51. <name>aliyun</name>
  52. <url>https://maven.aliyun.com/repository/public</url>
  53. </repository>
  54. </repositories>
  55. <build>
  56. <plugins>
  57. <!-- maven-surefire-plugin 插件,用于运行单元测试。 -->
  58. <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 -->
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-surefire-plugin</artifactId>
  62. <version>${maven-surefire-plugin.version}</version>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-compiler-plugin</artifactId>
  67. <version>3.8.1</version>
  68. <configuration>
  69. <source>1.8</source>
  70. <target>1.8</target>
  71. <encoding>UTF-8</encoding>
  72. </configuration>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </project>