pom.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.yihu.jw</groupId>
  8. <artifactId>svr-lib-parent-pom</artifactId>
  9. <version>1.0.0</version>
  10. <relativePath>../../svr-lib-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-discovery</artifactId>
  14. <version>1.0.0</version>
  15. <packaging>war</packaging>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.cloud</groupId>
  19. <!--<artifactId>spring-cloud-starter-eureka-server</artifactId>-->
  20. <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-logging</artifactId>
  29. </dependency>
  30. <!--给 eurika界面添加账号密码验证-->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-security</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-webmvc</artifactId>
  38. </dependency>
  39. </dependencies>
  40. <build>
  41. <finalName>svr-discovery</finalName>
  42. <plugins>
  43. <plugin>
  44. <artifactId>maven-war-plugin</artifactId>
  45. <configuration>
  46. <failOnMissingWebXml>false</failOnMissingWebXml>
  47. <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
  48. </configuration>
  49. </plugin>
  50. <plugin>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-maven-plugin</artifactId>
  53. <executions>
  54. <execution>
  55. <goals>
  56. <goal>repackage</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. <configuration>
  61. <mainClass>com.yihu.jw.SvrDiscovery</mainClass>
  62. </configuration>
  63. </plugin>
  64. </plugins>
  65. </build>
  66. </project>