pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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.13.RELEASE</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.2.2</version>
  14. <name>ms-mcms</name>
  15. <!-- 打包war包 -->
  16. <!--<packaging>war</packaging>-->
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. </properties>
  21. <repositories>
  22. <repository>
  23. <id>central-repos</id>
  24. <name>Central Repository 2</name>
  25. <url>https://repo.maven.apache.org/maven2/</url>
  26. </repository>
  27. <!--阿里云仓库-->
  28. <!--
  29. <repository>
  30. <id>alimaven</id>
  31. <name>aliyun maven</name>
  32. <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  33. <releases>
  34. <enabled>true</enabled>
  35. </releases>
  36. <snapshots>
  37. <enabled>true</enabled>
  38. </snapshots>
  39. </repository>
  40. -->
  41. </repositories>
  42. <dependencies>
  43. <dependency>
  44. <groupId>net.mingsoft</groupId>
  45. <artifactId>ms-base</artifactId>
  46. <version>2.1.3</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>net.mingsoft</groupId>
  50. <artifactId>ms-basic</artifactId>
  51. <version>2.1.3</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>net.mingsoft</groupId>
  55. <artifactId>ms-mdiy</artifactId>
  56. <version>2.1.3</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>net.mingsoft</groupId>
  60. <artifactId>store-client</artifactId>
  61. <version>2.1.3</version>
  62. </dependency>
  63. </dependencies>
  64. <build>
  65. <finalName>ms-mcms</finalName>
  66. <resources>
  67. <resource>
  68. <directory>src/main/webapp</directory>
  69. <excludes>
  70. <!-- 打包生产并手动将static、html、upload、template复制到生产 -->
  71. <exclude>static/</exclude>
  72. <exclude>html/</exclude>
  73. <exclude>upload/</exclude>
  74. <exclude>template/</exclude>
  75. <!-- 打包war包,必须删除下面一行代码。打包jar包,推荐启用下面一行代码,方便修改页面代码,否则会WEB-INF里面到文件都会打包到jar里面,不方便修改页面代码-->
  76. <!-- <exclude>WEB-INF/</exclude>-->
  77. </excludes>
  78. </resource>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. </resource>
  82. <resource>
  83. <directory>src/main/java</directory>
  84. <excludes>
  85. <exclude>**/*.java</exclude>
  86. </excludes>
  87. </resource>
  88. </resources>
  89. <plugins>
  90. <!-- 打包war包,启用下面的代码 -->
  91. <!--
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-war-plugin</artifactId>
  95. <version>3.3.1</version>
  96. <configuration>
  97. <packagingExcludes>/WEB-INF/manager/</packagingExcludes>
  98. </configuration>
  99. </plugin>
  100. -->
  101. <plugin>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-maven-plugin</artifactId>
  104. <version>2.5.0</version>
  105. <configuration>
  106. <executable>true</executable>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-compiler-plugin</artifactId>
  112. <version>3.1</version>
  113. <configuration>
  114. <source>${java.version}</source>
  115. <target>${java.version}</target>
  116. <encoding>${project.build.sourceEncoding}</encoding>
  117. <showDeprecation>true</showDeprecation>
  118. <showWarnings>true</showWarnings>
  119. <compilerArguments>
  120. <verbose/>
  121. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  122. </compilerArguments>
  123. </configuration>
  124. <dependencies>
  125. <dependency>
  126. <groupId>org.codehaus.plexus</groupId>
  127. <artifactId>plexus-compiler-eclipse</artifactId>
  128. <version>2.1</version>
  129. </dependency>
  130. </dependencies>
  131. </plugin>
  132. </plugins>
  133. <defaultGoal>compile</defaultGoal>
  134. </build>
  135. </project>