pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.google.net.stubby</groupId>
  6. <artifactId>stubby-parent</artifactId>
  7. <version>0.1.0-SNAPSHOT</version>
  8. </parent>
  9. <artifactId>grpc-hello-world</artifactId>
  10. <packaging>jar</packaging>
  11. <name>Hello gRPC World</name>
  12. <dependencies>
  13. <dependency>
  14. <groupId>${project.groupId}</groupId>
  15. <artifactId>stubby-core</artifactId>
  16. <version>${project.version}</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>${project.groupId}</groupId>
  20. <artifactId>stubby-netty</artifactId>
  21. <version>${project.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>${project.groupId}</groupId>
  25. <artifactId>stubby-okhttp</artifactId>
  26. <version>${project.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>${project.groupId}</groupId>
  30. <artifactId>stubby-stub</artifactId>
  31. <version>${project.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>${project.groupId}</groupId>
  35. <artifactId>stubby-testing</artifactId>
  36. <version>${project.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>junit</groupId>
  40. <artifactId>junit</artifactId>
  41. <scope>compile</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.mockito</groupId>
  45. <artifactId>mockito-core</artifactId>
  46. <scope>compile</scope>
  47. </dependency>
  48. </dependencies>
  49. <build>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-assembly-plugin</artifactId>
  54. <executions>
  55. <execution>
  56. <id>assemble-all</id>
  57. <phase>package</phase>
  58. <goals>
  59. <goal>single</goal>
  60. </goals>
  61. </execution>
  62. </executions>
  63. <configuration>
  64. <descriptorRefs>
  65. <descriptorRef>jar-with-dependencies</descriptorRef>
  66. </descriptorRefs>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>com.internetitem</groupId>
  71. <artifactId>write-properties-file-maven-plugin</artifactId>
  72. <executions>
  73. <execution>
  74. <id>bootclasspath</id>
  75. <phase>prepare-package</phase>
  76. <goals>
  77. <goal>write-properties-file</goal>
  78. </goals>
  79. <configuration>
  80. <filename>bootclasspath.properties</filename>
  81. <outputDirectory>${project.build.directory}</outputDirectory>
  82. <properties>
  83. <property>
  84. <name>bootclasspath</name>
  85. <value>${argLine.bootcp}</value>
  86. </property>
  87. <property>
  88. <name>jar</name>
  89. <value>${project.build.directory}/${project.artifactId}-${project.version}-jar-with-dependencies.jar</value>
  90. </property>
  91. </properties>
  92. </configuration>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. </plugins>
  97. </build>
  98. </project>