pom-bin.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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</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.26</version>
  23. </dependency>
  24. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  25. <dependency>
  26. <groupId>net.mingsoft</groupId>
  27. <artifactId>store-client</artifactId>
  28. <version>5.1</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. <fork>true</fork>
  56. </configuration>
  57. </plugin>
  58. <!--
  59. 打包生产
  60. -->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-assembly-plugin</artifactId>
  64. <version>3.1.0</version>
  65. <configuration>
  66. <descriptors>
  67. <descriptor>./bin/assembly.xml</descriptor>
  68. </descriptors>
  69. </configuration>
  70. <executions>
  71. <execution>
  72. <id>make-assembly</id>
  73. <phase>package</phase>
  74. <goals>
  75. <goal>single</goal>
  76. </goals>
  77. </execution>
  78. </executions>
  79. </plugin>
  80. </plugins>
  81. <resources>
  82. <resource>
  83. <directory>src/main/java</directory>
  84. <excludes>
  85. <exclude>**/*.java</exclude>
  86. </excludes>
  87. </resource>
  88. <resource>
  89. <directory>src/main/webapp</directory>
  90. <excludes>
  91. <!--打包生产-->
  92. <exclude>static/**</exclude>
  93. <exclude>html/**</exclude>
  94. <exclude>upload/**</exclude>
  95. <exclude>templets/**</exclude>
  96. <exclude>WEB-INF/**</exclude>
  97. </excludes>
  98. </resource>
  99. </resources>
  100. <defaultGoal>compile</defaultGoal>
  101. </build>
  102. </project>