pom.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <groupId>com.pj</groupId>
  7. <artifactId>market-server</artifactId>
  8. <packaging>pom</packaging>
  9. <version>0.0.1-SNAPSHOT</version>
  10. <modules>
  11. <module>sp-core</module>
  12. <module>sp-native</module>
  13. <module>sp-service</module>
  14. <module>sp-generate</module>
  15. </modules>
  16. <!-- 指定一些属性 -->
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  20. <resource.delimiter>@</resource.delimiter>
  21. <maven.compiler.source>${java.version}</maven.compiler.source>
  22. <maven.compiler.target>${java.version}</maven.compiler.target>
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  25. </properties>
  26. <!-- 依赖管理 (不会真正的引入依赖,只会限定其版本) -->
  27. <dependencyManagement>
  28. <dependencies>
  29. <!-- SpringCloud -->
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-dependencies</artifactId>
  33. <version>Hoxton.RELEASE</version>
  34. <!-- <version>Hoxton.SR4</version> -->
  35. <type>pom</type>
  36. <scope>import</scope>
  37. </dependency>
  38. <!-- SpringCloud Alibaba -->
  39. <dependency>
  40. <groupId>com.alibaba.cloud</groupId>
  41. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  42. <!-- <version>2.2.3.RELEASE</version> -->
  43. <version>2.2.2.RELEASE</version>
  44. <type>pom</type>
  45. <scope>import</scope>
  46. </dependency>
  47. <!-- Alibaba Nacos -->
  48. <dependency>
  49. <groupId>com.alibaba.nacos</groupId>
  50. <artifactId>nacos-client</artifactId>
  51. <version>1.3.2</version>
  52. </dependency>
  53. <!-- SpringBoot -->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-dependencies</artifactId>
  57. <version>2.3.3.RELEASE</version>
  58. <type>pom</type>
  59. <scope>import</scope>
  60. </dependency>
  61. </dependencies>
  62. </dependencyManagement>
  63. <dependencies>
  64. </dependencies>
  65. <!-- 构建配置 -->
  66. <build>
  67. <!-- 配置资源目录, 主要解决idea无法将代码中的mapper.xml编译的问题 -->
  68. <resources>
  69. <resource>
  70. <directory>src/main/java</directory>
  71. <includes>
  72. <include>**/*.xml</include>
  73. </includes>
  74. </resource>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. <includes>
  78. <include>**/*.*</include>
  79. </includes>
  80. </resource>
  81. </resources>
  82. </build>
  83. </project>