pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <parent>
  6. <artifactId>autodop</artifactId>
  7. <groupId>cn.reghao.autodop</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>dagent</artifactId>
  12. <properties>
  13. <projOrchestration.build.sourceEncoding>utf-8</projOrchestration.build.sourceEncoding>
  14. <projOrchestration.reporting.outputEncoding>utf-8</projOrchestration.reporting.outputEncoding>
  15. <java.version>1.8</java.version>
  16. <grpc.version>1.6.1</grpc.version>
  17. <protobuf.version>3.3.0</protobuf.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>cn.reghao.autodop</groupId>
  22. <artifactId>common</artifactId>
  23. <version>1.0.0</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.libvirt</groupId>
  27. <artifactId>libvirt</artifactId>
  28. <version>0.5.1</version>
  29. </dependency>
  30. </dependencies>
  31. <profiles>
  32. <profile>
  33. <id>dev</id>
  34. <properties>
  35. <profile.active>dev</profile.active>
  36. </properties>
  37. <activation>
  38. <activeByDefault>true</activeByDefault>
  39. </activation>
  40. </profile>
  41. <profile>
  42. <id>test</id>
  43. <properties>
  44. <profile.active>test</profile.active>
  45. </properties>
  46. </profile>
  47. <profile>
  48. <id>prod</id>
  49. <properties>
  50. <profile.active>prod</profile.active>
  51. </properties>
  52. </profile>
  53. </profiles>
  54. <build>
  55. <extensions>
  56. <extension>
  57. <groupId>kr.motd.maven</groupId>
  58. <artifactId>os-maven-plugin</artifactId>
  59. <version>1.5.0.Final</version>
  60. </extension>
  61. </extensions>
  62. <resources>
  63. <resource>
  64. <directory>src/main/resources</directory>
  65. <filtering>true</filtering>
  66. <excludes>
  67. <exclude>*</exclude>
  68. </excludes>
  69. </resource>
  70. <resource>
  71. <directory>src/main/resources</directory>
  72. <filtering>true</filtering>
  73. <includes>
  74. <include>application.yml</include>
  75. <include>application-${profile.active}.yml</include>
  76. <include>logback-spring.xml</include>
  77. </includes>
  78. </resource>
  79. </resources>
  80. <plugins>
  81. <plugin>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-maven-plugin</artifactId>
  84. <configuration>
  85. <executable>true</executable>
  86. <fork>true</fork>
  87. </configuration>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.xolstice.maven.plugins</groupId>
  91. <artifactId>protobuf-maven-plugin</artifactId>
  92. <version>0.5.0</version>
  93. <configuration>
  94. <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
  95. <pluginId>grpc-java</pluginId>
  96. <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <goals>
  101. <goal>compile</goal>
  102. <goal>compile-custom</goal>
  103. </goals>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. </plugins>
  108. </build>
  109. </project>