pom-war.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <packaging>war</packaging>
  11. <properties>
  12. <java.version>1.8</java.version>
  13. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>net.mingsoft</groupId>
  18. <artifactId>ms-mpeople</artifactId>
  19. </dependency>
  20. <!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
  21. <dependency>
  22. <groupId>net.mingsoft</groupId>
  23. <artifactId>store-client</artifactId>
  24. <version>5.1</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. <exclusions>
  30. <exclusion>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-tomcat</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-tomcat</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.tomcat</groupId>
  43. <artifactId>tomcat-servlet-api</artifactId>
  44. <version>7.0.42</version>
  45. <scope>provided</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter</artifactId>
  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. <version>3.1</version>
  65. <configuration>
  66. <source>${java.version}</source>
  67. <target>${java.version}</target>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-maven-plugin</artifactId>
  73. <executions>
  74. <execution>
  75. <goals>
  76. <goal>repackage</goal>
  77. </goals>
  78. </execution>
  79. </executions>
  80. <configuration>
  81. <fork>true</fork>
  82. </configuration>
  83. </plugin>
  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. </resource>
  98. <resource>
  99. <directory>src/main/resources</directory>
  100. </resource>
  101. <resource>
  102. <directory>src/main/java</directory>
  103. </resource>
  104. </resources>
  105. <defaultGoal>compile</defaultGoal>
  106. </build>
  107. </project>