This is an automated email from the ASF dual-hosted git repository. baunsgaard pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new 697e381a84 [SYSTEMDS-3381] Protobuf maven profile
697e381a84 is described below
commit 697e381a84bf3e19b2c2cac29b9c2d5c8daa7fc0
Author: baunsgaard <[email protected]>
AuthorDate: Wed Jun 8 23:13:20 2022 +0200
[SYSTEMDS-3381] Protobuf maven profile
This commit adds a Protobuf profile to maven,
the profile is added for three reasons 1. to decrease build time of the
system by 1 sec, 2. to avoid having to have a internet connection to
build our system (assuming that we have downloaded mvn dependencey
resources) and finally 3. because we do not need to build the Protobuf
file every time we build.
---
pom.xml | 62 ++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 34 insertions(+), 28 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9b985241e8..2b13d314be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,6 @@
<properties>
<hadoop.version>3.3.1</hadoop.version>
- <!-- Consistent with spark -->
<antlr.version>4.8</antlr.version>
<protobuf.version>3.20.1</protobuf.version>
<spark.version>3.2.0</spark.version>
@@ -292,33 +291,6 @@
</executions>
</plugin>
- <plugin> <!-- generate .java files from .proto -->
- <groupId>com.github.os72</groupId>
- <artifactId>protoc-jar-maven-plugin</artifactId>
- <version>3.11.4</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <!-- protoc binaries to
be picked up from
-
https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/ -->
-
<protocVersion>${protobuf.version}</protocVersion>
- <inputDirectories>
-
<include>src/main/resources/protobuf</include>
- </inputDirectories>
-
<outputDirectory>src/main/java</outputDirectory>
- <outputDirectories>
-
<include>src/main/java</include>
- </outputDirectories>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
-
<plugin> <!-- unit tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -675,6 +647,40 @@
</plugins>
</build>
</profile>
+
+ <profile>
+ <id>proton</id>
+ <build>
+ <plugins>
+ <plugin>
+ <!-- generate .java files from
.proto -->
+
<groupId>com.github.os72</groupId>
+
<artifactId>protoc-jar-maven-plugin</artifactId>
+ <version>3.11.4</version>
+ <executions>
+ <execution>
+
<phase>generate-sources</phase>
+ <goals>
+
<goal>run</goal>
+ </goals>
+ <configuration>
+ <!--
protoc binaries to be picked up from
+
https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/ -->
+
<protocVersion>${protobuf.version}</protocVersion>
+
<inputDirectories>
+
<include>src/main/resources/protobuf</include>
+
</inputDirectories>
+
<outputDirectory>src/main/java</outputDirectory>
+
<outputDirectories>
+
<include>src/main/java</include>
+
</outputDirectories>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<!-- Profile to create binary distributions. Execute
with `mvn clean package
