pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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/maven-v4_0_0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.google</groupId>
  8. <artifactId>google</artifactId>
  9. <version>1</version>
  10. </parent>
  11. <groupId>com.google.protobuf</groupId>
  12. <artifactId>protobuf-java-util</artifactId>
  13. <version>3.0.0-beta-2</version>
  14. <packaging>bundle</packaging>
  15. <name>Protocol Buffer Java API</name>
  16. <description>
  17. Protocol Buffers are a way of encoding structured data in an efficient yet
  18. extensible format.
  19. </description>
  20. <inceptionYear>2008</inceptionYear>
  21. <url>https://developers.google.com/protocol-buffers/</url>
  22. <licenses>
  23. <license>
  24. <name>New BSD license</name>
  25. <url>http://www.opensource.org/licenses/bsd-license.php</url>
  26. <distribution>repo</distribution>
  27. </license>
  28. </licenses>
  29. <scm>
  30. <url>https://github.com/google/protobuf</url>
  31. <connection>
  32. scm:git:https://github.com/google/protobuf.git
  33. </connection>
  34. </scm>
  35. <dependencies>
  36. <dependency>
  37. <groupId>com.google.protobuf</groupId>
  38. <artifactId>protobuf-java</artifactId>
  39. <version>3.0.0-beta-2</version>
  40. <scope>compile</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.google.guava</groupId>
  44. <artifactId>guava</artifactId>
  45. <version>18.0</version>
  46. <scope>compile</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.google.code.gson</groupId>
  50. <artifactId>gson</artifactId>
  51. <version>2.3</version>
  52. <scope>compile</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>junit</groupId>
  56. <artifactId>junit</artifactId>
  57. <version>4.4</version>
  58. <scope>test</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.easymock</groupId>
  62. <artifactId>easymock</artifactId>
  63. <version>2.2</version>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.easymock</groupId>
  68. <artifactId>easymockclassextension</artifactId>
  69. <version>2.2.1</version>
  70. <scope>test</scope>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <artifactId>maven-compiler-plugin</artifactId>
  77. <configuration>
  78. <source>1.5</source>
  79. <target>1.5</target>
  80. </configuration>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-surefire-plugin</artifactId>
  84. <configuration>
  85. <includes>
  86. <include>**/*Test.java</include>
  87. <include>../src/main/java/com/google/protobuf/TestUtil.java</include>
  88. </includes>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <artifactId>maven-antrun-plugin</artifactId>
  93. <executions>
  94. <execution>
  95. <id>generate-test-sources</id>
  96. <phase>generate-test-sources</phase>
  97. <configuration>
  98. <tasks>
  99. <mkdir dir="target/generated-test-sources" />
  100. <exec executable="../../src/protoc">
  101. <arg value="--java_out=target/generated-test-sources" />
  102. <arg value="--proto_path=../../src" />
  103. <arg value="--proto_path=src/test/java" />
  104. <arg value="../../src/google/protobuf/unittest.proto" />
  105. <arg value="../../src/google/protobuf/unittest_import.proto" />
  106. <arg value="../../src/google/protobuf/unittest_import_public.proto" />
  107. <arg value="src/test/java/com/google/protobuf/util/json_test.proto" />
  108. </exec>
  109. </tasks>
  110. <testSourceRoot>target/generated-test-sources</testSourceRoot>
  111. </configuration>
  112. <goals>
  113. <goal>run</goal>
  114. </goals>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.felix</groupId>
  120. <artifactId>maven-bundle-plugin</artifactId>
  121. <extensions>true</extensions>
  122. <configuration>
  123. <instructions>
  124. <Bundle-DocURL>https://developers.google.com/protocol-buffers/</Bundle-DocURL>
  125. <Bundle-SymbolicName>com.google.protobuf.util</Bundle-SymbolicName>
  126. <Export-Package>com.google.protobuf.util;version=3.0.0-beta-2</Export-Package>
  127. </instructions>
  128. </configuration>
  129. </plugin>
  130. <plugin>
  131. <artifactId>maven-assembly-plugin</artifactId>
  132. <configuration>
  133. <descriptorRefs>
  134. <descriptorRef>jar-with-dependencies</descriptorRef>
  135. </descriptorRefs>
  136. </configuration>
  137. </plugin>
  138. </plugins>
  139. </build>
  140. <profiles>
  141. <profile>
  142. <id>release</id>
  143. <distributionManagement>
  144. <snapshotRepository>
  145. <id>sonatype-nexus-staging</id>
  146. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  147. </snapshotRepository>
  148. <repository>
  149. <id>sonatype-nexus-staging</id>
  150. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  151. </repository>
  152. </distributionManagement>
  153. <build>
  154. <plugins>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-source-plugin</artifactId>
  158. <version>2.2.1</version>
  159. <executions>
  160. <execution>
  161. <id>attach-sources</id>
  162. <goals>
  163. <goal>jar-no-fork</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. <plugin>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-javadoc-plugin</artifactId>
  171. <version>2.9.1</version>
  172. <executions>
  173. <execution>
  174. <id>attach-javadocs</id>
  175. <goals>
  176. <goal>jar</goal>
  177. </goals>
  178. </execution>
  179. </executions>
  180. </plugin>
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-gpg-plugin</artifactId>
  184. <version>1.5</version>
  185. <executions>
  186. <execution>
  187. <id>sign-artifacts</id>
  188. <phase>verify</phase>
  189. <goals>
  190. <goal>sign</goal>
  191. </goals>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.sonatype.plugins</groupId>
  197. <artifactId>nexus-staging-maven-plugin</artifactId>
  198. <version>1.6.3</version>
  199. <extensions>true</extensions>
  200. <configuration>
  201. <serverId>sonatype-nexus-staging</serverId>
  202. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  203. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  204. </configuration>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. </profile>
  209. </profiles>
  210. </project>