bin-xml 3.8 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.2.0</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.28</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. <mainClass>net.mingsoft.MSApplication</mainClass>
  57. </configuration>
  58. </plugin>
  59. <!--
  60. 打包生产
  61. -->
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-assembly-plugin</artifactId>
  65. <version>3.1.0</version>
  66. <configuration>
  67. <descriptors>
  68. <descriptor>bin/assembly.xml</descriptor>
  69. </descriptors>
  70. </configuration>
  71. <executions>
  72. <execution>
  73. <id>make-assembly</id>
  74. <phase>package</phase>
  75. <goals>
  76. <goal>single</goal>
  77. </goals>
  78. </execution>
  79. </executions>
  80. </plugin>
  81. </plugins>
  82. <resources>
  83. <resource>
  84. <directory>src/main/java</directory>
  85. <excludes>
  86. <exclude>**/*.java</exclude>
  87. </excludes>
  88. </resource>
  89. <resource>
  90. <directory>src/main/webapp</directory>
  91. <excludes>
  92. <!--打包生产-->
  93. <exclude>static/**</exclude>
  94. <exclude>html/**</exclude>
  95. <exclude>upload/**</exclude>
  96. <exclude>templets/**</exclude>
  97. <exclude>WEB-INF/**</exclude>
  98. </excludes>
  99. </resource>
  100. </resources>
  101. <defaultGoal>compile</defaultGoal>
  102. </build>
  103. </project>