pom.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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>mcms</artifactId>
  8. <version>4.7.0-SNAPSHOT</version>
  9. <name>ms-mcms</name>
  10. <packaging>jar</packaging>
  11. <properties>
  12. <java.version>1.8</java.version>
  13. </properties>
  14. <repositories>
  15. <repository>
  16. <id>sonatype-nexus-snapshots</id>
  17. <name>Sonatype Nexus Snapshots</name>
  18. <url>http://repo1.maven.org/maven2/</url>
  19. <releases>
  20. <enabled>true</enabled>
  21. </releases>
  22. <snapshots>
  23. <enabled>true</enabled>
  24. </snapshots>
  25. </repository>
  26. <repository>
  27. <id>sonatype</id>
  28. <name>Sonatype Snapshots</name>
  29. <url>https://oss.sonatype.org/content/groups/public/</url>
  30. <releases>
  31. <enabled>true</enabled>
  32. </releases>
  33. <snapshots>
  34. <enabled>true</enabled>
  35. </snapshots>
  36. </repository>
  37. </repositories>
  38. <dependencies>
  39. <dependency>
  40. <groupId>net.mingsoft</groupId>
  41. <artifactId>ms-mpeople</artifactId>
  42. <version>1.0.8-SNAPSHOT</version>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <finalName>ms-mcms</finalName>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-compiler-plugin</artifactId>
  51. <version>3.1</version>
  52. <configuration>
  53. <source>${java.version}</source>
  54. <target>${java.version}</target>
  55. </configuration>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-maven-plugin</artifactId>
  60. <executions>
  61. <execution>
  62. <goals>
  63. <goal>repackage</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. <configuration>
  68. <fork>true</fork>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-war-plugin</artifactId>
  74. <configuration>
  75. <failOnMissingWebXml>false</failOnMissingWebXml>
  76. <!-- 打包时候需需要启用,注意避免快照依赖的冗余jar包 -->
  77. <!-- outputFileNameMapping>@{artifactId}@- @{baseVersion}@. @{extension}@</outputFileNameMapping -->
  78. </configuration>
  79. </plugin>
  80. </plugins>
  81. <resources>
  82. <resource>
  83. <directory>src/main/webapp</directory>
  84. </resource>
  85. <resource>
  86. <directory>src/main/resources</directory>
  87. </resource>
  88. <resource>
  89. <directory>src/main/java</directory>
  90. </resource>
  91. </resources>
  92. <defaultGoal>compile</defaultGoal>
  93. </build>
  94. </project>