Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 18b4234

Browse files
committed
Update hibench common
Due Scala < 2.12 does not compiles on java 1.11 jdk and, scala 2.12 requires to change org.apache.kafka from `0.8.2.1` to at least `0.10.2.2` This last kafka version will require to change/port the code of following classes: * KafkaCollector.scala * KafkaConsumer.scala * MetricsUtil.scala To avoid break the streaming benchmarks in scala 2.11 and 2.10 the following changes are implemented: * Added profile to skip compiling scala code by using `maven.assembly.plugin.goal` variable. * Changed the goal in `scala-compile-first` to change in function of this added profile when no need to compile Kafka scala code. Signed-off-by: Luis Ponce <luis.f.ponce.navarro@linux.intel.com>
1 parent aae754b commit 18b4234

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

common/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<phase>process-resources</phase>
6161
<goals>
6262
<goal>add-source</goal>
63-
<goal>compile</goal>
63+
<goal>${maven.assembly.plugin.goal}</goal>
6464
</goals>
6565
</execution>
6666
<execution>
@@ -99,6 +99,7 @@
9999
<properties>
100100
<scala.version>2.11.8</scala.version>
101101
<scala.binary.version>2.11</scala.binary.version>
102+
<maven.assembly.plugin.goal>compile</maven.assembly.plugin.goal>
102103
</properties>
103104
<activation>
104105
<property>
@@ -112,6 +113,7 @@
112113
<properties>
113114
<scala.version>2.10.4</scala.version>
114115
<scala.binary.version>2.10</scala.binary.version>
116+
<maven.assembly.plugin.goal>compile</maven.assembly.plugin.goal>
115117
</properties>
116118
<activation>
117119
<property>
@@ -126,6 +128,7 @@
126128
<properties>
127129
<scala.version>2.11.8</scala.version>
128130
<scala.binary.version>2.11</scala.binary.version>
131+
<maven.assembly.plugin.goal>compile</maven.assembly.plugin.goal>
129132
</properties>
130133
<activation>
131134
<property>
@@ -134,5 +137,18 @@
134137
</property>
135138
</activation>
136139
</profile>
140+
141+
<profile>
142+
<id>exclude-streaming</id>
143+
<properties>
144+
<maven.assembly.plugin.goal>doc</maven.assembly.plugin.goal>
145+
</properties>
146+
<activation>
147+
<property>
148+
<name>exclude-streaming</name>
149+
</property>
150+
</activation>
151+
</profile>
152+
137153
</profiles>
138154
</project>

0 commit comments

Comments
 (0)