pom.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <parent>
  7. <groupId>com.hcloud.microserver</groupId>
  8. <artifactId>common-parent</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. <relativePath>../common-parent/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.hcloud.microserver</groupId>
  13. <artifactId>eureka-register-server</artifactId>
  14. <version>1.0.0-SNAPSHOT</version>
  15. <packaging>jar</packaging>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.cloud</groupId>
  19. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  20. <version>1.4.4.RELEASE</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-security</artifactId>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-maven-plugin</artifactId>
  32. </plugin>
  33. <plugin>
  34. <groupId>com.spotify</groupId>
  35. <artifactId>docker-maven-plugin</artifactId>
  36. <version>1.2.2</version>
  37. <configuration>
  38. <serverId>${docker.serviceId}</serverId>
  39. <dockerHost>${docker.dockerHost}</dockerHost>
  40. <imageName>docker.io/${project.artifactId}:${docker.image.version}</imageName>
  41. <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
  42. <resources>
  43. <resource>
  44. <targetPath>/</targetPath>
  45. <directory>${project.build.directory}</directory>
  46. <include>${project.build.finalName}.jar</include>
  47. </resource>
  48. </resources>
  49. </configuration>
  50. </plugin>
  51. </plugins>
  52. </build>
  53. </project>