pom.xml 4.7 KB

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