pom.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~
  4. ~ Copyright (c) 2018-2025, lengleng All rights reserved.
  5. ~
  6. ~ Redistribution and use in source and binary forms, with or without
  7. ~ modification, are permitted provided that the following conditions are met:
  8. ~
  9. ~ Redistributions of source code must retain the above copyright notice,
  10. ~ this list of conditions and the following disclaimer.
  11. ~ Redistributions in binary form must reproduce the above copyright
  12. ~ notice, this list of conditions and the following disclaimer in the
  13. ~ documentation and/or other materials provided with the distribution.
  14. ~ Neither the name of the pig4cloud.com developer nor the names of its
  15. ~ contributors may be used to endorse or promote products derived from
  16. ~ this software without specific prior written permission.
  17. ~ Author: lengleng (wangiegie@gmail.com)
  18. ~
  19. -->
  20. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  21. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>com.pig4cloud</groupId>
  25. <artifactId>pigx</artifactId>
  26. <version>${pigx.version}</version>
  27. </parent>
  28. <artifactId>pigx-eureka</artifactId>
  29. <packaging>jar</packaging>
  30. <name>pigx-eureka</name>
  31. <description>pigx 服务中心,基于eureka</description>
  32. <dependencies>
  33. <!--服务中心-->
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  37. </dependency>
  38. <!--security-->
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-starter-security</artifactId>
  42. </dependency>
  43. <!--配置中心客户端-->
  44. <dependency>
  45. <groupId>org.springframework.cloud</groupId>
  46. <artifactId>spring-cloud-starter-config</artifactId>
  47. </dependency>
  48. <!--web 模块-->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. <exclusions>
  53. <!--排除tomcat依赖-->
  54. <exclusion>
  55. <artifactId>spring-boot-starter-tomcat</artifactId>
  56. <groupId>org.springframework.boot</groupId>
  57. </exclusion>
  58. </exclusions>
  59. </dependency>
  60. <!--undertow容器-->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-undertow</artifactId>
  64. </dependency>
  65. </dependencies>
  66. <build>
  67. <plugins>
  68. <plugin>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-maven-plugin</artifactId>
  71. <configuration>
  72. <finalName>${project.name}</finalName>
  73. </configuration>
  74. </plugin>
  75. <plugin>
  76. <groupId>com.spotify</groupId>
  77. <artifactId>docker-maven-plugin</artifactId>
  78. <version>0.4.12</version>
  79. <configuration>
  80. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  81. <dockerHost>${docker.url}</dockerHost>
  82. <dockerDirectory>${project.basedir}</dockerDirectory>
  83. <resources>
  84. <resource>
  85. <targetPath>/</targetPath>
  86. <directory>${project.build.directory}</directory>
  87. <include>${project.build.finalName}.jar</include>
  88. </resource>
  89. </resources>
  90. <serverId>docker-hub</serverId>
  91. <registryUrl>https://index.docker.io/v1/</registryUrl>
  92. </configuration>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </project>