diff options
Diffstat (limited to 'model-integration/pom.xml')
-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> |