pom.xml 3.7 KB

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