pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <groupId>net.mingsoft</groupId>
  12. <artifactId>ms-mcms</artifactId>
  13. <version>5.2.1-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>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. </dependency>
  47. <dependency>
  48. <groupId>net.mingsoft</groupId>
  49. <artifactId>ms-basic</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>net.mingsoft</groupId>
  53. <artifactId>ms-mdiy</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>net.mingsoft</groupId>
  57. <artifactId>store-client</artifactId>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <finalName>ms-mcms</finalName>
  62. <resources>
  63. <resource>
  64. <directory>src/main/webapp</directory>
  65. <excludes>
  66. <!-- 打包生产并手动将static、html、upload、template复制到生产 -->
  67. <exclude>static/</exclude>
  68. <exclude>html/</exclude>
  69. <exclude>upload/</exclude>
  70. <exclude>template/</exclude>
  71. <!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
  72. <!-- <exclude>WEB-INF/</exclude>-->
  73. </excludes>
  74. </resource>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. </resource>
  78. <resource>
  79. <directory>src/main/java</directory>
  80. <excludes>
  81. <exclude>**/*.java</exclude>
  82. </excludes>
  83. </resource>
  84. </resources>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-maven-plugin</artifactId>
  89. <configuration>
  90. <executable>true</executable>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-compiler-plugin</artifactId>
  96. <version>3.1</version>
  97. <configuration>
  98. <source>${java.version}</source>
  99. <target>${java.version}</target>
  100. <encoding>${project.build.sourceEncoding}</encoding>
  101. <showDeprecation>true</showDeprecation>
  102. <showWarnings>true</showWarnings>
  103. <compilerArguments>
  104. <verbose/>
  105. <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar</bootclasspath>
  106. </compilerArguments>
  107. </configuration>
  108. <dependencies>
  109. <dependency>
  110. <groupId>org.codehaus.plexus</groupId>
  111. <artifactId>plexus-compiler-eclipse</artifactId>
  112. <version>2.1</version>
  113. </dependency>
  114. </dependencies>
  115. </plugin>
  116. </plugins>
  117. <defaultGoal>compile</defaultGoal>
  118. </build>
  119. </project>