pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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.2-SNAPSHOT</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>dm</groupId>
  38. <artifactId>dm.jdbc.driver</artifactId>
  39. <version>7.0.1</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>net.mingsoft</groupId>
  43. <artifactId>ms-mpeople</artifactId>
  44. </dependency>
  45. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  46. <dependency>
  47. <groupId>net.mingsoft</groupId>
  48. <artifactId>store-client</artifactId>
  49. <version>5.1</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter</artifactId>
  54. <version>2.2.2.RELEASE</version>
  55. <exclusions>
  56. <exclusion>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-logging</artifactId>
  59. </exclusion>
  60. </exclusions>
  61. </dependency>
  62. </dependencies>
  63. <build>
  64. <finalName>ms-mcms</finalName>
  65. <plugins>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-compiler-plugin</artifactId>
  69. <configuration>
  70. <source>${java.version}</source>
  71. <target>${java.version}</target>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <executions>
  78. <execution>
  79. <goals>
  80. <goal>repackage</goal>
  81. </goals>
  82. </execution>
  83. </executions>
  84. <configuration>
  85. <fork>true</fork>
  86. </configuration>
  87. </plugin>
  88. <!-- 打包war包使用 -->
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-war-plugin</artifactId>
  92. <configuration>
  93. <warSourceExcludes>src/main/resources/**</warSourceExcludes>
  94. <warName>mcms</warName>
  95. </configuration>
  96. </plugin>
  97. </plugins>
  98. <resources>
  99. <resource>
  100. <directory>src/main/webapp</directory>
  101. <excludes>
  102. <!--打包生产 -->
  103. <exclude>static/</exclude>
  104. <exclude>html/</exclude>
  105. <exclude>upload/</exclude>
  106. <exclude>templets/</exclude>
  107. </excludes>
  108. </resource>
  109. <resource>
  110. <directory>src/main/resources</directory>
  111. </resource>
  112. <resource>
  113. <directory>src/main/java</directory>
  114. <excludes>
  115. <exclude>**/*.java</exclude>
  116. </excludes>
  117. </resource>
  118. </resources>
  119. <defaultGoal>compile</defaultGoal>
  120. </build>
  121. </project>