pom-bin.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.2.RELEASE</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.1-SNAPSHOT</version>
  14. <name>ms-mcms</name>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>net.mingsoft</groupId>
  21. <artifactId>ms-mpeople</artifactId>
  22. <version>1.0.25</version>
  23. </dependency>
  24. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  25. <dependency>
  26. <groupId>net.mingsoft</groupId>
  27. <artifactId>store-client</artifactId>
  28. <version>3.0</version>
  29. </dependency>
  30. </dependencies>
  31. <build>
  32. <finalName>ms-mcms</finalName>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.apache.maven.plugins</groupId>
  36. <artifactId>maven-compiler-plugin</artifactId>
  37. <version>3.1</version>
  38. <configuration>
  39. <source>${java.version}</source>
  40. <target>${java.version}</target>
  41. </configuration>
  42. </plugin>
  43. <plugin>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-maven-plugin</artifactId>
  46. <executions>
  47. <execution>
  48. <goals>
  49. <goal>repackage</goal>
  50. </goals>
  51. </execution>
  52. </executions>
  53. <!--打包生产-->
  54. <configuration>
  55. <layout>ZIP</layout>
  56. <includes>
  57. <include>
  58. <groupId>non-exists</groupId>
  59. <artifactId>non-exists</artifactId>
  60. </include>
  61. </includes>
  62. <fork>true</fork>
  63. </configuration>
  64. </plugin>
  65. <!--
  66. 打包生产
  67. -->
  68. <plugin>
  69. <artifactId>maven-dependency-plugin</artifactId>
  70. <executions>
  71. <execution>
  72. <id>copy-dependencies</id>
  73. <phase>package</phase>
  74. <goals>
  75. <goal>copy-dependencies</goal>
  76. </goals>
  77. <configuration>
  78. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  79. <excludeTransitive>false</excludeTransitive>
  80. <stripVersion>false</stripVersion>
  81. <includeScope>runtime</includeScope>
  82. </configuration>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-assembly-plugin</artifactId>
  89. <version>3.1.0</version>
  90. <configuration>
  91. <descriptors>
  92. <descriptor>./bin/assembly.xml</descriptor>
  93. </descriptors>
  94. </configuration>
  95. <executions>
  96. <execution>
  97. <id>make-assembly</id>
  98. <phase>package</phase>
  99. <goals>
  100. <goal>single</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. </plugins>
  106. <resources>
  107. <resource>
  108. <directory>src/main/java</directory>
  109. <excludes>
  110. <!--打包生产-->
  111. <exclude>*.java</exclude>
  112. </excludes>
  113. </resource>
  114. <resource>
  115. <directory>src/main/webapp</directory>
  116. <excludes>
  117. <!--打包生产-->
  118. <exclude>static/**</exclude>
  119. <exclude>html/**</exclude>
  120. <exclude>upload/**</exclude>
  121. <exclude>templets/**</exclude>
  122. <exclude>WEB-INF/**</exclude>
  123. </excludes>
  124. </resource>
  125. </resources>
  126. <defaultGoal>compile</defaultGoal>
  127. </build>
  128. </project>