pom.xml 3.1 KB

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