From d7d20c58c771f3be6cc44b37dc5b741443beca03 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 15 Oct 2015 05:25:27 +0200 Subject: Execute Protocol Buffer compiler during build Dependency for compiler selected based on platform. Supported platforms are Windows/Linux x86/64 and Mac OS. Configuration in root POM to avoid duplication. This also makes version of compiler consistent with version of library. Previously it was 3.0.0-a3 and 3.0.0-beta-1 respectively, now both are 3.0.0-beta-1. And removes all existing auto generated files and scripts for their creation as well as their traces (such as comments and exclusions for SonarQube). --- pom.xml | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 145 insertions(+), 1 deletion(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 7f9a0fbf8e7..de59e81549c 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,10 @@ 1.7.12 8.0.18 1.7.2 + + 3.0.0-beta-1 + ${settings.localRepository}/com/google/protobuf/protoc/${protobuf.version}/protoc-${protobuf.version}-${os.detected.classifier}.exe + UTF-8 3.2 1.7 @@ -88,6 +92,11 @@ wagon-webdav 1.0-beta-2 + + kr.motd.maven + os-maven-plugin + 1.4.1.Final + @@ -1100,7 +1109,7 @@ com.google.protobuf protobuf-java - 3.0.0-beta-1 + ${protobuf.version} net.jpountz.lz4 @@ -1347,6 +1356,141 @@ + + protobuf-compile + + + src/main/protobuf + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + protobuf-compile + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + com.google.protobuf + protoc + ${protobuf.version} + ${os.detected.classifier} + exe + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + protobuf-compile + generate-sources + + add-source + + + + ${project.build.directory}/generated-sources/protobuf + + + + + + + + + + protobuf-test-compile + + + src/test/protobuf + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + protobuf-test-compile + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + com.google.protobuf + protoc + ${protobuf.version} + ${os.detected.classifier} + exe + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + protobuf-test-compile + generate-test-sources + + add-test-source + + + + ${project.build.directory}/generated-test-sources/protobuf + + + + + + + + + m2e -- cgit v1.2.3