pom.xml 3.1 KB

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