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