pom.xml 4.0 KB

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