pom.xml 3.0 KB

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