pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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>protoc</artifactId>
  13. <version>3.6.1</version>
  14. <packaging>pom</packaging>
  15. <name>Protobuf Compiler</name>
  16. <description>
  17. Protobuf Compiler (protoc) is a compiler for .proto files. It generates
  18. language-specific code for Protobuf messages and RPC interfaces.
  19. </description>
  20. <inceptionYear>2008</inceptionYear>
  21. <url>https://developers.google.com/protocol-buffers/</url>
  22. <licenses>
  23. <license>
  24. <name>3-Clause BSD License</name>
  25. <url>https://opensource.org/licenses/BSD-3-Clause</url>
  26. <distribution>repo</distribution>
  27. </license>
  28. </licenses>
  29. <scm>
  30. <url>https://github.com/protocolbuffers/protobuf</url>
  31. <connection>
  32. scm:git:https://github.com/protocolbuffers/protobuf.git
  33. </connection>
  34. </scm>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.codehaus.mojo</groupId>
  39. <artifactId>build-helper-maven-plugin</artifactId>
  40. <version>1.8</version>
  41. <executions>
  42. <execution>
  43. <id>attach-artifacts</id>
  44. <phase>package</phase>
  45. <goals>
  46. <goal>attach-artifact</goal>
  47. </goals>
  48. <configuration>
  49. <artifacts>
  50. <artifact>
  51. <file>${basedir}/target/linux/x86_64/protoc.exe</file>
  52. <classifier>linux-x86_64</classifier>
  53. <type>exe</type>
  54. </artifact>
  55. <artifact>
  56. <file>${basedir}/target/linux/x86_32/protoc.exe</file>
  57. <classifier>linux-x86_32</classifier>
  58. <type>exe</type>
  59. </artifact>
  60. <artifact>
  61. <file>${basedir}/target/windows/x86_64/protoc.exe</file>
  62. <classifier>windows-x86_64</classifier>
  63. <type>exe</type>
  64. </artifact>
  65. <artifact>
  66. <file>${basedir}/target/windows/x86_32/protoc.exe</file>
  67. <classifier>windows-x86_32</classifier>
  68. <type>exe</type>
  69. </artifact>
  70. <artifact>
  71. <file>${basedir}/target/osx/x86_64/protoc.exe</file>
  72. <classifier>osx-x86_64</classifier>
  73. <type>exe</type>
  74. </artifact>
  75. <artifact>
  76. <file>${basedir}/target/osx/x86_32/protoc.exe</file>
  77. <classifier>osx-x86_32</classifier>
  78. <type>exe</type>
  79. </artifact>
  80. <artifact>
  81. <file>${basedir}/target/linux/aarch_64/protoc.exe</file>
  82. <classifier>linux-aarch_64</classifier>
  83. <type>exe</type>
  84. </artifact>
  85. </artifacts>
  86. </configuration>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. </plugins>
  91. </build>
  92. <profiles>
  93. <profile>
  94. <id>release</id>
  95. <properties>
  96. <!-- Specify the staging repository to deploy to. This can be left
  97. empty for the first deployment, and Sonatype will create one. For
  98. subsequent deployments it should be set to what Sonatype has
  99. created, so that all deployments will go to the same repository.
  100. -->
  101. <staging.repository></staging.repository>
  102. </properties>
  103. <build>
  104. <plugins>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-gpg-plugin</artifactId>
  108. <version>1.5</version>
  109. <executions>
  110. <execution>
  111. <id>sign-artifacts</id>
  112. <phase>verify</phase>
  113. <goals>
  114. <goal>sign</goal>
  115. </goals>
  116. </execution>
  117. </executions>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.sonatype.plugins</groupId>
  121. <artifactId>nexus-staging-maven-plugin</artifactId>
  122. <version>1.6.3</version>
  123. <extensions>true</extensions>
  124. <configuration>
  125. <serverId>sonatype-nexus-staging</serverId>
  126. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  127. <skipStagingRepositoryClose>true</skipStagingRepositoryClose>
  128. <autoReleaseAfterClose>false</autoReleaseAfterClose>
  129. <stagingRepositoryId>${staging.repository}</stagingRepositoryId>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. </build>
  134. </profile>
  135. </profiles>
  136. </project>