pom.xml 4.5 KB

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