aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-11-23 15:39:00 +0100
committerGitHub <noreply@github.com>2018-11-23 15:39:00 +0100
commit4ef1c3ab2a6617f7740d36300bf4e129a41dc8d3 (patch)
treec47b7c35335ec5d4ab322381f51629c4ee5b2966
parente0610680d381a54929553d13b9b3d0b71c17918b (diff)
parent0ee5c02a6492793e06652892a7f3abb0b3db5c3b (diff)
Merge pull request #7756 from vespa-engine/bratseth/optionally-exclude-jni
Optionally exclude TF JNI
-rw-r--r--model-integration/pom.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/model-integration/pom.xml b/model-integration/pom.xml
index da18d659060..9971e78d3c5 100644
--- a/model-integration/pom.xml
+++ b/model-integration/pom.xml
@@ -99,4 +99,30 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <!-- Exclude TF JNI when building for rhel6, which needs a special, natively installed variant -->
+ <profile>
+ <id>rhel6</id>
+ <activation>
+ <property>
+ <name>target.env</name>
+ <value>rhel6</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.tensorflow</groupId>
+ <artifactId>tensorflow</artifactId>
+ <exclusions>
+ <exclusion>
+ <groupId>org.tensorflow</groupId>
+ <artifactId>libtensorflow_jni</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
+
</project>