java - how to build a jar with maven for a specific OS? -


i using maven eclipse build jar run on remote server. system running os x, server running cestos. project need tensorflow library. maven resolves dependencies able run project locally. however, on server getting error tensorflow library not there because default maven includes macosx version. how can force maven substitute macosx version of tensorflow linux version during build?

tensorflow java libraries different platforms can found here.

p.s. tried adding dependency in pom system scope pointing jar.

try in pom:

<dependency>     <groupid>org.bytedeco.javacpp-presets</groupid>     <artifactid>tensorflow</artifactid>     <version>0.9.0-1.2</version> </dependency> <dependency>     <groupid>org.bytedeco.javacpp-presets</groupid>     <artifactid>tensorflow</artifactid>     <version>0.9.0-1.2</version>     <classifier>linux-x86_64</classifier> </dependency> 

or linux-x86 instead, if server 32-bit.

of course, defining conditional dependency profiles nice.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -