pom-bin.xml 3.5 KB

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