pom.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <artifactId>platform</artifactId>
  6. <groupId>com.platform</groupId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>platform-framework</artifactId>
  10. <packaging>war</packaging>
  11. <name>platform-framework</name>
  12. <description>
  13. 此项目为系统WEB合并,
  14. 合并项目可以根据需要自己配置。
  15. 最终打包的项目也根据此配置进行打包。
  16. </description>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.platform</groupId>
  20. <artifactId>platform-common</artifactId>
  21. <version>1.0.0</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.platform</groupId>
  25. <artifactId>platform-gen</artifactId>
  26. <version>1.0.0</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.platform</groupId>
  30. <artifactId>platform-schedule</artifactId>
  31. <version>1.0.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.platform</groupId>
  35. <artifactId>platform-api</artifactId>
  36. <version>1.0.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.platform</groupId>
  40. <artifactId>platform-admin</artifactId>
  41. <version>1.0.0</version>
  42. <type>war</type>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.platform</groupId>
  46. <artifactId>platform-shop</artifactId>
  47. <version>1.0.0</version>
  48. <type>war</type>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.platform</groupId>
  52. <artifactId>platform-mp</artifactId>
  53. <version>1.0.0</version>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <sourceDirectory>src/main/java</sourceDirectory>
  58. <finalName>platform-framework</finalName>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-surefire-plugin</artifactId>
  63. <version>2.18.1</version>
  64. <configuration>
  65. <skipTests>true</skipTests>
  66. </configuration>
  67. </plugin>
  68. <!-- 合并多个war -->
  69. <plugin>
  70. <groupId>org.apache.maven.plugins</groupId>
  71. <artifactId>maven-war-plugin</artifactId>
  72. <version>2.6</version>
  73. <configuration>
  74. <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
  75. <failOnMissingWebXml>false</failOnMissingWebXml>
  76. <overlays>
  77. <overlay>
  78. <groupId>com.platform</groupId>
  79. <artifactId>platform-admin</artifactId>
  80. </overlay>
  81. <overlay>
  82. <groupId>com.platform</groupId>
  83. <artifactId>platform-shop</artifactId>
  84. </overlay>
  85. <!-- 待添加其他要合并的 web 模块 -->
  86. </overlays>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>