pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-base</artifactId>
  41. <version>1.0.8.boot</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>net.mingsoft</groupId>
  45. <artifactId>ms-basic</artifactId>
  46. <version>1.0.8</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>net.mingsoft</groupId>
  50. <artifactId>ms-mdiy</artifactId>
  51. <version>1.0.7</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>net.mingsoft</groupId>
  55. <artifactId>ms-mpeople</artifactId>
  56. <version>1.0.7</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>net.mingsoft</groupId>
  60. <artifactId>ms-upgrader</artifactId>
  61. <version>1.0.5-SNAPSHOT</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>javax.servlet</groupId>
  65. <artifactId>javax.servlet-api</artifactId>
  66. <version>3.1.0</version>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.tomcat.embed</groupId>
  71. <artifactId>tomcat-embed-jasper</artifactId>
  72. <version>9.0.16</version>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <finalName>ms-mcms</finalName>
  77. <plugins>
  78. <!-- docker部署 <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId>
  79. <version>1.2.0</version> <configuration> <dockerHost>http://localhost</dockerHost>
  80. <imageName>ms-mcms</imageName> <baseImage>java</baseImage> <entryPoint>["java",
  81. "-jar", "/${project.build.finalName}.jar"]</entryPoint> <resources> <resource>
  82. <targetPath>/</targetPath> <directory>${project.build.directory}</directory>
  83. <include>${project.build.finalName}.jar</include> </resource> </resources>
  84. </configuration> </plugin> -->
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-compiler-plugin</artifactId>
  88. <version>3.1</version>
  89. <configuration>
  90. <source>${java.version}</source>
  91. <target>${java.version}</target>
  92. </configuration>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-maven-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <goals>
  100. <goal>repackage</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. <configuration>
  105. <fork>true</fork>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-maven-plugin</artifactId>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-war-plugin</artifactId>
  115. <configuration>
  116. <failOnMissingWebXml>false</failOnMissingWebXml>
  117. <!-- 打包时候需需要启用,注意避免快照依赖的冗余jar包 -->
  118. <!-- outputFileNameMapping>@{artifactId}@- @{baseVersion}@. @{extension}@</outputFileNameMapping -->
  119. </configuration>
  120. </plugin>
  121. </plugins>
  122. <resources>
  123. <resource>
  124. <directory>src/main/webapp</directory>
  125. </resource>
  126. <resource>
  127. <directory>src/main/resources</directory>
  128. </resource>
  129. <resource>
  130. <directory>src/main/java</directory>
  131. </resource>
  132. </resources>
  133. <defaultGoal>compile</defaultGoal>
  134. </build>
  135. </project>