aboutsummaryrefslogtreecommitdiff
path: root/protoc-artifacts/pom.xml
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2018-07-13 12:28:17 -0700
committerFeng Xiao <xfxyjwf@gmail.com>2018-07-15 21:03:55 -0700
commit474fd3160f6ef0daa7ad75941d203dfb34bcf3e5 (patch)
tree0f8609796847ff0a9099312fe1470bafa751e87f /protoc-artifacts/pom.xml
parentb23429ea324818150754e3b7a78a996871fbd2ae (diff)
downloadprotobuf-474fd3160f6ef0daa7ad75941d203dfb34bcf3e5.tar.gz
protobuf-474fd3160f6ef0daa7ad75941d203dfb34bcf3e5.tar.bz2
protobuf-474fd3160f6ef0daa7ad75941d203dfb34bcf3e5.zip
Update protoc build scripts.
1. Changed maven script to only do artifact uploading and removed build script invocation from it. We didn't use maven to invoke the build script before (we built protoc manually and editted pom.xml to only do uploading for previous releases), and will not use it in the future (we will use kokoro to build artifacts). 2. Cleaned up build-protoc.sh and README.md: removed the part about using maven to build and listed supported platforms explicitly.
Diffstat (limited to 'protoc-artifacts/pom.xml')
-rw-r--r--protoc-artifacts/pom.xml63
1 files changed, 32 insertions, 31 deletions
diff --git a/protoc-artifacts/pom.xml b/protoc-artifacts/pom.xml
index 667a0215..390cd220 100644
--- a/protoc-artifacts/pom.xml
+++ b/protoc-artifacts/pom.xml
@@ -33,38 +33,9 @@
</connection>
</scm>
<build>
- <extensions>
- <extension>
- <groupId>kr.motd.maven</groupId>
- <artifactId>os-maven-plugin</artifactId>
- <version>1.5.0.Final</version>
- </extension>
- </extensions>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <executable>bash</executable>
- <arguments>
- <argument>build-protoc.sh</argument>
- <argument>${os.detected.name}</argument>
- <argument>${os.detected.arch}</argument>
- <argument>protoc</argument>
- </arguments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
@@ -77,8 +48,38 @@
<configuration>
<artifacts>
<artifact>
- <file>${basedir}/target/protoc.exe</file>
- <classifier>${os.detected.name}-${os.detected.arch}</classifier>
+ <file>${basedir}/target/linux/x86_64/protoc.exe</file>
+ <classifier>linux-x86_64</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/linux/x86_32/protoc.exe</file>
+ <classifier>linux-x86_32</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/windows/x86_64/protoc.exe</file>
+ <classifier>windows-x86_64</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/windows/x86_32/protoc.exe</file>
+ <classifier>windows-x86_32</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/osx/x86_64/protoc.exe</file>
+ <classifier>osx-x86_64</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/osx/x86_32/protoc.exe</file>
+ <classifier>osx-x86_32</classifier>
+ <type>exe</type>
+ </artifact>
+ <artifact>
+ <file>${basedir}/target/linux/aarch_64/protoc.exe</file>
+ <classifier>linux-aarch_64</classifier>
<type>exe</type>
</artifact>
</artifacts>