diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-11-23 14:48:55 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-11-23 14:48:55 +0100 |
commit | 0ee5c02a6492793e06652892a7f3abb0b3db5c3b (patch) | |
tree | f43b6526f24d33fba50bc7cfe99f2de0650bc947 /model-integration | |
parent | 19c76089b9204deea14cb959e2cd563bace177e3 (diff) |
Optionally exclude TF JNI
Diffstat (limited to 'model-integration')
-rw-r--r-- | model-integration/pom.xml | 26 |
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> |