pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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-alpha-4-pre</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-alpha-4-pre</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-alpha-3</Export-Package>
  127. </instructions>
  128. </configuration>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. <profiles>
  133. <profile>
  134. <id>release</id>
  135. <distributionManagement>
  136. <snapshotRepository>
  137. <id>sonatype-nexus-staging</id>
  138. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  139. </snapshotRepository>
  140. <repository>
  141. <id>sonatype-nexus-staging</id>
  142. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  143. </repository>
  144. </distributionManagement>
  145. <build>
  146. <plugins>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-source-plugin</artifactId>
  150. <version>2.2.1</version>
  151. <executions>
  152. <execution>
  153. <id>attach-sources</id>
  154. <goals>
  155. <goal>jar-no-fork</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-javadoc-plugin</artifactId>
  163. <version>2.9.1</version>
  164. <executions>
  165. <execution>
  166. <id>attach-javadocs</id>
  167. <goals>
  168. <goal>jar</goal>
  169. </goals>
  170. </execution>
  171. </executions>
  172. </plugin>
  173. <plugin>
  174. <groupId>org.apache.maven.plugins</groupId>
  175. <artifactId>maven-gpg-plugin</artifactId>
  176. <version>1.5</version>
  177. <executions>
  178. <execution>
  179. <id>sign-artifacts</id>
  180. <phase>verify</phase>
  181. <goals>
  182. <goal>sign</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.sonatype.plugins</groupId>
  189. <artifactId>nexus-staging-maven-plugin</artifactId>
  190. <version>1.6.3</version>
  191. <extensions>true</extensions>
  192. <configuration>
  193. <serverId>sonatype-nexus-staging</serverId>
  194. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  195. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </build>
  200. </profile>
  201. </profiles>
  202. </project>