pom.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <groupId>com.yihu</groupId>
  7. <artifactId>svr-lib-parent-pom</artifactId>
  8. <version>1.0.0</version>
  9. <packaging>pom</packaging>
  10. <developers>
  11. <developer>
  12. <id>cwd</id>
  13. <name>陈伟达</name>
  14. <email>494679975@qq.com</email>
  15. <organizationUrl>localhost</organizationUrl>
  16. <roles>
  17. <role>Project programmer</role>
  18. </roles>
  19. </developer>
  20. </developers>
  21. <modules>
  22. <module>../svr-configuration</module> <!--配置服务-->
  23. <module>../svr-discovery</module><!--发现服务-->
  24. <!--业务微服务-->
  25. <module>../svr/svr-user</module><!--用户微服务-->
  26. </modules>
  27. <properties>
  28. <version.springCloud>1.3.0.RELEASE</version.springCloud>
  29. <version.springBoot>1.5.3.RELEASE</version.springBoot>
  30. </properties>
  31. <!--dependencyManagement作用子配置不写版本默认继承父配置-->
  32. <dependencyManagement>
  33. <dependencies>
  34. <!--springCloud start-->
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-eureka-server</artifactId>
  38. <version>${version.springCloud}</version>
  39. </dependency>
  40. <!--springCloud end-->
  41. <!--springBoot start-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot</artifactId>
  45. <version>${version.springBoot}</version>
  46. </dependency>
  47. <!--springBoot end-->
  48. </dependencies>
  49. </dependencyManagement>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-maven-plugin</artifactId>
  55. </plugin>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <configuration>
  60. <source>1.8</source>
  61. <target>1.8</target>
  62. </configuration>
  63. <version>3.1</version>
  64. </plugin>
  65. </plugins>
  66. </build>
  67. </project>