pom-war.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>net.mingsoft</groupId>
  22. <artifactId>ms-mpeople</artifactId>
  23. <version>1.0.26</version>
  24. </dependency>
  25. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  26. <dependency>
  27. <groupId>net.mingsoft</groupId>
  28. <artifactId>store-client</artifactId>
  29. <version>5.1</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. <exclusions>
  35. <exclusion>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-tomcat</artifactId>
  38. </exclusion>
  39. </exclusions>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-tomcat</artifactId>
  44. <scope>provided</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.apache.tomcat</groupId>
  48. <artifactId>tomcat-servlet-api</artifactId>
  49. <version>7.0.42</version>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-starter</artifactId>
  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. <version>3.1</version>
  70. <configuration>
  71. <source>${java.version}</source>
  72. <target>${java.version}</target>
  73. </configuration>
  74. </plugin>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <executions>
  79. <execution>
  80. <goals>
  81. <goal>repackage</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. <configuration>
  86. <fork>true</fork>
  87. </configuration>
  88. </plugin>
  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. <filtering>true</filtering>
  101. <directory>src/main/webapp</directory>
  102. </resource>
  103. <resource>
  104. <directory>src/main/resources</directory>
  105. </resource>
  106. <resource>
  107. <directory>src/main/java</directory>
  108. </resource>
  109. </resources>
  110. <defaultGoal>compile</defaultGoal>
  111. </build>
  112. </project>