You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
5.3 KiB

  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. <parent>
  6. <artifactId>ym-pass</artifactId>
  7. <groupId>com.cnbm</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>ym-gateway</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.cnbm</groupId>
  19. <artifactId>ym-common</artifactId>
  20. <version>1.0-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.cnbm</groupId>
  24. <artifactId>ym-admin</artifactId>
  25. <version>1.0-SNAPSHOT</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.cnbm</groupId>
  29. <artifactId>ym-baisc</artifactId>
  30. <version>1.0-SNAPSHOT</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.cnbm</groupId>
  34. <artifactId>ym-influx</artifactId>
  35. <version>1.0-SNAPSHOT</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.cnbm</groupId>
  39. <artifactId>ym-quality-planning</artifactId>
  40. <version>1.0-SNAPSHOT</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.cnbm</groupId>
  44. <artifactId>ym-process-inspection</artifactId>
  45. <version>1.0-SNAPSHOT</version>
  46. </dependency>
  47. <!-- <dependency>-->
  48. <!-- <groupId>org.springframework.boot</groupId>-->
  49. <!-- <artifactId>spring-boot-actuator-autoconfigure</artifactId>-->
  50. <!-- <version>2.7.0</version>-->
  51. <!-- <optional>true</optional>-->
  52. <!-- <exclusions>-->
  53. <!-- <exclusion>-->
  54. <!-- <groupId>com.fasterxml.jackson.core</groupId>-->
  55. <!-- <artifactId>jackson-databind</artifactId>-->
  56. <!-- </exclusion>-->
  57. <!-- </exclusions>-->
  58. <!-- </dependency>-->
  59. <dependency>
  60. <groupId>com.cnbm</groupId>
  61. <artifactId>ym-schedule-task</artifactId>
  62. <version>1.0-SNAPSHOT</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>io.springfox</groupId>
  66. <artifactId>springfox-boot-starter</artifactId>
  67. <version>3.0.0</version>
  68. <exclusions>
  69. <exclusion>
  70. <groupId>io.swagger</groupId>
  71. <artifactId>swagger-models</artifactId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. <dependency>
  76. <groupId>io.swagger</groupId>
  77. <artifactId>swagger-models</artifactId>
  78. <version>1.5.21</version>
  79. </dependency>
  80. </dependencies>
  81. <build>
  82. <finalName>${project.artifactId}</finalName>
  83. <plugins>
  84. <plugin>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-maven-plugin</artifactId>
  87. <version>2.5.12</version>
  88. <configuration>
  89. <!--指定运行main函数的包-->
  90. <mainClass>com.cnbm.YmApplication</mainClass>
  91. <!--开启分层编译支持-->
  92. <layers>
  93. <enabled>true</enabled>
  94. <configuration>${project.basedir}/src/main/resources/layers.xml</configuration>
  95. </layers>
  96. <excludes>
  97. <exclude>
  98. <groupId>org.projectlombok</groupId>
  99. <artifactId>lombok</artifactId>
  100. </exclude>
  101. </excludes>
  102. </configuration>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>repackage</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-surefire-plugin</artifactId>
  114. <configuration>
  115. <skipTests>true</skipTests>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>com.spotify</groupId>
  120. <artifactId>docker-maven-plugin</artifactId>
  121. <version>${docker.plugin.version}</version>
  122. <configuration>
  123. <imageName>ym-pass/${project.artifactId}</imageName>
  124. <dockerDirectory>${project.basedir}/</dockerDirectory>
  125. <resources>
  126. <resource>
  127. <targetPath>/</targetPath>
  128. <directory>${project.build.directory}</directory>
  129. <include>${project.build.finalName}.jar</include>
  130. </resource>
  131. </resources>
  132. </configuration>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. </project>