blob: e9728a0639a4a12bf7508576dafe8c9b19857176 [file] [log] [blame]
Kun Zhangae9177d2015-03-31 18:26:28 -07001<?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>
Feng Xiaoaa7e17a2015-12-21 11:31:51 -080013 <version>3.0.0-beta-2</version>
Kun Zhangae9177d2015-03-31 18:26:28 -070014 <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>
Kun Zhangc8eda8e2015-04-01 16:23:15 -070060 <argument>${os.detected.name}</argument>
61 <argument>${os.detected.arch}</argument>
Kun Zhangae9177d2015-03-31 18:26:28 -070062 </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>
Kun Zhang74c4b642015-04-01 16:32:21 -070080 <classifier>${os.detected.name}-${os.detected.arch}</classifier>
Kun Zhangae9177d2015-03-31 18:26:28 -070081 <type>exe</type>
82 </artifact>
83 </artifacts>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
Kun Zhangae9177d2015-03-31 18:26:28 -070088 </plugins>
89 </build>
Kun Zhang18f02bc2015-04-01 11:53:03 -070090 <profiles>
91 <profile>
92 <id>release</id>
Kun Zhangc5a2a7c2015-04-06 14:31:29 -070093 <properties>
Kun Zhangc6792362015-04-07 17:18:46 -070094 <!-- 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 -->
Kun Zhangc5a2a7c2015-04-06 14:31:29 -070099 <staging.repository></staging.repository>
100 </properties>
Kun Zhang18f02bc2015-04-01 11:53:03 -0700101 <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>
Kun Zhangc5a2a7c2015-04-06 14:31:29 -0700125 <skipStagingRepositoryClose>true</skipStagingRepositoryClose>
Kun Zhang18f02bc2015-04-01 11:53:03 -0700126 <autoReleaseAfterClose>false</autoReleaseAfterClose>
Kun Zhangc5a2a7c2015-04-06 14:31:29 -0700127 <stagingRepositoryId>${staging.repository}</stagingRepositoryId>
Kun Zhang18f02bc2015-04-01 11:53:03 -0700128 </configuration>
129 </plugin>
130 </plugins>
131 </build>
132 </profile>
133 </profiles>
Kun Zhangae9177d2015-03-31 18:26:28 -0700134</project>