pom.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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-config</artifactId>
  29. <packaging>jar</packaging>
  30. <name>pigx-config</name>
  31. <description>pigx 配置中心,基于spring cloud config</description>
  32. <dependencies>
  33. <!--配置中心-->
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-config-server</artifactId>
  37. </dependency>
  38. <!--web 模块-->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-web</artifactId>
  42. <exclusions>
  43. <!--排除tomcat依赖-->
  44. <exclusion>
  45. <artifactId>spring-boot-starter-tomcat</artifactId>
  46. <groupId>org.springframework.boot</groupId>
  47. </exclusion>
  48. </exclusions>
  49. </dependency>
  50. <!--undertow容器-->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-undertow</artifactId>
  54. </dependency>
  55. </dependencies>
  56. <build>
  57. <plugins>
  58. <plugin>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-maven-plugin</artifactId>
  61. <configuration>
  62. <finalName>${project.name}</finalName>
  63. </configuration>
  64. </plugin>
  65. <plugin>
  66. <groupId>com.spotify</groupId>
  67. <artifactId>docker-maven-plugin</artifactId>
  68. <version>0.4.12</version>
  69. <configuration>
  70. <imageName>${registry.url}/${project.name}:0.0.1</imageName>
  71. <dockerHost>${docker.url}</dockerHost>
  72. <dockerDirectory>${project.basedir}</dockerDirectory>
  73. <resources>
  74. <resource>
  75. <targetPath>/</targetPath>
  76. <directory>${project.build.directory}</directory>
  77. <include>${project.build.finalName}.jar</include>
  78. </resource>
  79. </resources>
  80. <serverId>docker-hub</serverId>
  81. <registryUrl>https://index.docker.io/v1/</registryUrl>
  82. </configuration>
  83. </plugin>
  84. </plugins>
  85. </build>
  86. </project>