pom.xml 3.6 KB

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