pom-bin.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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>net.mingsoft</groupId>
  7. <artifactId>ms-pom</artifactId>
  8. <version>2.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.2-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. </dependency>
  23. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  24. <dependency>
  25. <groupId>net.mingsoft</groupId>
  26. <artifactId>store-client</artifactId>
  27. <version>5.1</version>
  28. </dependency>
  29. </dependencies>
  30. <build>
  31. <finalName>ms-mcms</finalName>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-compiler-plugin</artifactId>
  36. <version>3.1</version>
  37. <configuration>
  38. <source>${java.version}</source>
  39. <target>${java.version}</target>
  40. </configuration>
  41. </plugin>
  42. <plugin>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-maven-plugin</artifactId>
  45. <executions>
  46. <execution>
  47. <goals>
  48. <goal>repackage</goal>
  49. </goals>
  50. </execution>
  51. </executions>
  52. <!--打包生产-->
  53. <configuration>
  54. <fork>true</fork>
  55. </configuration>
  56. </plugin>
  57. <!--
  58. 打包生产
  59. -->
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-assembly-plugin</artifactId>
  63. <version>3.1.0</version>
  64. <configuration>
  65. <descriptors>
  66. <descriptor>./bin/assembly.xml</descriptor>
  67. </descriptors>
  68. </configuration>
  69. <executions>
  70. <execution>
  71. <id>make-assembly</id>
  72. <phase>package</phase>
  73. <goals>
  74. <goal>single</goal>
  75. </goals>
  76. </execution>
  77. </executions>
  78. </plugin>
  79. </plugins>
  80. <resources>
  81. <resource>
  82. <directory>src/main/java</directory>
  83. <excludes>
  84. <exclude>**/*.java</exclude>
  85. </excludes>
  86. </resource>
  87. <resource>
  88. <directory>src/main/webapp</directory>
  89. <excludes>
  90. <!--打包生产-->
  91. <exclude>static/</exclude>
  92. <exclude>html/</exclude>
  93. <exclude>upload/</exclude>
  94. <exclude>templets/</exclude>
  95. <exclude>WEB-INF/</exclude>
  96. </excludes>
  97. </resource>
  98. </resources>
  99. <defaultGoal>compile</defaultGoal>
  100. </build>
  101. </project>