pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. <!-- 打包jar包 -->
  11. <packaging>jar</packaging>
  12. <!-- 打包war包 -->
  13. <!-- <packaging>war</packaging> -->
  14. <properties>
  15. <java.version>1.8</java.version>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18. <repositories>
  19. <repository>
  20. <id>alimaven</id>
  21. <name>aliyun maven</name>
  22. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  23. <releases>
  24. <enabled>true</enabled>
  25. </releases>
  26. <snapshots>
  27. <enabled>true</enabled>
  28. </snapshots>
  29. </repository>
  30. </repositories>
  31. <dependencies>
  32. <dependency>
  33. <groupId>net.mingsoft</groupId>
  34. <artifactId>ms-mpeople</artifactId>
  35. <version>1.0.28</version>
  36. </dependency>
  37. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  38. <dependency>
  39. <groupId>net.mingsoft</groupId>
  40. <artifactId>store-client</artifactId>
  41. <version>5.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter</artifactId>
  46. <version>2.2.2.RELEASE</version>
  47. <exclusions>
  48. <exclusion>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-logging</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. </dependencies>
  55. <build>
  56. <finalName>ms-mcms</finalName>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-compiler-plugin</artifactId>
  61. <configuration>
  62. <source>${java.version}</source>
  63. <target>${java.version}</target>
  64. </configuration>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-maven-plugin</artifactId>
  69. <executions>
  70. <execution>
  71. <goals>
  72. <goal>repackage</goal>
  73. </goals>
  74. </execution>
  75. </executions>
  76. <configuration>
  77. <fork>true</fork>
  78. </configuration>
  79. </plugin>
  80. <!-- 打包war包使用 -->
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-war-plugin</artifactId>
  84. <configuration>
  85. <warSourceExcludes>src/main/resources/**</warSourceExcludes>
  86. <warName>mcms</warName>
  87. </configuration>
  88. </plugin>
  89. </plugins>
  90. <resources>
  91. <resource>
  92. <filtering>true</filtering>
  93. <directory>src/main/webapp</directory>
  94. <excludes>
  95. <!--打包生产 -->
  96. <!-- <exclude>static/</exclude> -->
  97. <!-- <exclude>html/</exclude> -->
  98. <!-- <exclude>upload/</exclude> -->
  99. <!-- <exclude>templets/</exclude> -->
  100. </excludes>
  101. </resource>
  102. <resource>
  103. <directory>src/main/resources</directory>
  104. </resource>
  105. <resource>
  106. <directory>src/main/java</directory>
  107. </resource>
  108. </resources>
  109. <defaultGoal>compile</defaultGoal>
  110. </build>
  111. </project>