blob: e9728a0639a4a12bf7508576dafe8c9b19857176 [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001<?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.0.0-beta-2</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>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 <build>
36 <extensions>
37 <extension>
38 <groupId>kr.motd.maven</groupId>
39 <artifactId>os-maven-plugin</artifactId>
40 <version>1.2.3.Final</version>
41 </extension>
42 </extensions>
43 <plugins>
44 <plugin>
45 <groupId>org.codehaus.mojo</groupId>
46 <artifactId>exec-maven-plugin</artifactId>
47 <version>1.1.1</version>
48 <executions>
49 <execution>
50 <phase>compile</phase>
51 <goals>
52 <goal>exec</goal>
53 </goals>
54 </execution>
55 </executions>
56 <configuration>
57 <executable>bash</executable>
58 <arguments>
59 <argument>build-protoc.sh</argument>
60 <argument>${os.detected.name}</argument>
61 <argument>${os.detected.arch}</argument>
62 </arguments>
63 </configuration>
64 </plugin>
65 <plugin>
66 <groupId>org.codehaus.mojo</groupId>
67 <artifactId>build-helper-maven-plugin</artifactId>
68 <version>1.8</version>
69 <executions>
70 <execution>
71 <id>attach-artifacts</id>
72 <phase>package</phase>
73 <goals>
74 <goal>attach-artifact</goal>
75 </goals>
76 <configuration>
77 <artifacts>
78 <artifact>
79 <file>${basedir}/target/protoc.exe</file>
80 <classifier>${os.detected.name}-${os.detected.arch}</classifier>
81 <type>exe</type>
82 </artifact>
83 </artifacts>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
88 </plugins>
89 </build>
90 <profiles>
91 <profile>
92 <id>release</id>
93 <properties>
94 <!-- Specify the staging repository to deploy to. This can be left
95 empty for the first deployment, and Sonatype will create one. For
96 subsequent deployments it should be set to what Sonatype has
97 created, so that all deployments will go to the same repository.
98 -->
99 <staging.repository></staging.repository>
100 </properties>
101 <build>
102 <plugins>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-gpg-plugin</artifactId>
106 <version>1.5</version>
107 <executions>
108 <execution>
109 <id>sign-artifacts</id>
110 <phase>verify</phase>
111 <goals>
112 <goal>sign</goal>
113 </goals>
114 </execution>
115 </executions>
116 </plugin>
117 <plugin>
118 <groupId>org.sonatype.plugins</groupId>
119 <artifactId>nexus-staging-maven-plugin</artifactId>
120 <version>1.6.3</version>
121 <extensions>true</extensions>
122 <configuration>
123 <serverId>sonatype-nexus-staging</serverId>
124 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
125 <skipStagingRepositoryClose>true</skipStagingRepositoryClose>
126 <autoReleaseAfterClose>false</autoReleaseAfterClose>
127 <stagingRepositoryId>${staging.repository}</stagingRepositoryId>
128 </configuration>
129 </plugin>
130 </plugins>
131 </build>
132 </profile>
133 </profiles>
134</project>