pom.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.jd.dt2</groupId>
  8. <artifactId>cgj-dt2-parent</artifactId>
  9. <version>0.0.1</version>
  10. </parent>
  11. <artifactId>eureka</artifactId>
  12. <name>eureka</name>
  13. <description>spring cloud-eureka注册中心</description>
  14. <dependencies>
  15. <!-- eureka服务端 -->
  16. <dependency>
  17. <groupId>org.springframework.cloud</groupId>
  18. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  19. </dependency>
  20. <!-- 权限验证组件 -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-security</artifactId>
  24. </dependency>
  25. </dependencies>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-maven-plugin</artifactId>
  31. </plugin>
  32. <!-- 排除lib/*.jar依赖及yml配置文件,增量更新 -->
  33. <!-- <plugin>
  34. <groupId>org.apache.maven.plugins</groupId>
  35. <artifactId>maven-jar-plugin</artifactId>
  36. <configuration>
  37. <archive>
  38. <manifest>
  39. <addClasspath>true</addClasspath>
  40. <classpathPrefix>lib/</classpathPrefix>
  41. <mainClass>com.jd.EurekaApplication</mainClass>
  42. </manifest>
  43. </archive>
  44. </configuration>
  45. </plugin> -->
  46. </plugins>
  47. <!-- <resources>
  48. <resource>
  49. <directory>src/main/resources</directory>
  50. <excludes>
  51. <exclude>**/*.yml</exclude>
  52. </excludes>
  53. </resource>
  54. </resources> -->
  55. </build>
  56. </project>