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