pom.xml 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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>demo</artifactId>
  7. <groupId>com.njyunzhi</groupId>
  8. <version>0.0.1</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>yz_platform</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.njyunzhi</groupId>
  19. <artifactId>yz_common</artifactId>
  20. <version>0.0.1</version>
  21. <scope>compile</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.njyunzhi</groupId>
  25. <artifactId>yz_repository</artifactId>
  26. <version>0.0.1</version>
  27. <scope>compile</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.njyunzhi</groupId>
  31. <artifactId>yz_framework</artifactId>
  32. <version>0.0.1</version>
  33. <scope>compile</scope>
  34. </dependency>
  35. </dependencies>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-maven-plugin</artifactId>
  41. <configuration>
  42. <layout>ZIP</layout>
  43. <includeSystemScope>true</includeSystemScope>
  44. <mainClass>com.njyunzhi.YzCrmPlatformApplication</mainClass>
  45. <includes>
  46. <include>
  47. <groupId>com.njyunzhi</groupId>
  48. <artifactId>yz_platform</artifactId>
  49. </include>
  50. <include>
  51. <groupId>com.njyunzhi</groupId>
  52. <artifactId>yz_common</artifactId>
  53. </include>
  54. <include>
  55. <groupId>com.njyunzhi</groupId>
  56. <artifactId>yz_framework</artifactId>
  57. </include>
  58. <include>
  59. <groupId>com.njyunzhi</groupId>
  60. <artifactId>yz_repository</artifactId>
  61. </include>
  62. </includes>
  63. <excludes>
  64. <exclude>
  65. <groupId>org.projectlombok</groupId>
  66. <artifactId>lombok</artifactId>
  67. </exclude>
  68. </excludes>
  69. </configuration>
  70. <executions>
  71. <execution>
  72. <goals>
  73. <goal>repackage</goal>
  74. </goals>
  75. </execution>
  76. </executions>
  77. </plugin>
  78. <!-- 打包发布时,跳过单元测试 -->
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-surefire-plugin</artifactId>
  82. <configuration>
  83. <skipTests>true</skipTests>
  84. </configuration>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-dependency-plugin</artifactId>
  89. <executions>
  90. <execution>
  91. <id>copy-dependencies</id>
  92. <phase>package</phase>
  93. <goals>
  94. <goal>copy-dependencies</goal>
  95. </goals>
  96. <configuration>
  97. <outputDirectory>target/lib</outputDirectory>
  98. <stripVersion>false</stripVersion>
  99. <!-- 不包含哪些jar包 -->
  100. <excludeGroupIds>
  101. <!-- 只排除业务模块相关的jar包,多个用英文逗号分割-->
  102. com.njyunzhi
  103. </excludeGroupIds>
  104. </configuration>
  105. </execution>
  106. </executions>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-resources-plugin</artifactId>
  111. <executions>
  112. <execution>
  113. <id>copy-resources</id>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>copy-resources</goal>
  117. </goals>
  118. <configuration>
  119. <outputDirectory>target/config</outputDirectory>
  120. <resources>
  121. <resource>
  122. <directory>./src/main/resources</directory>
  123. </resource>
  124. </resources>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. </plugins>
  130. </build>
  131. </project>