diff options
author | Asim Shankar <ashankar@google.com> | 2017-01-07 07:14:56 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-07 07:25:59 -0800 |
commit | 18ba73bea5864b004482efdd7de6458673eb3e1d (patch) | |
tree | 7026a016a9d4ac16a0c09b2c14ac14584c80f9f1 /tensorflow/java/README.md | |
parent | 8047c97a98b1b569a5b37aaaadf410fa4ff076fb (diff) |
Java: Generate pom.xml with the appropriate version number.
This commit removes pom.xml and replaces it with a trivial
tool to generate it, filling in the appropriate version of
the TensorFlow runtime.
Change: 143861686
Diffstat (limited to 'tensorflow/java/README.md')
-rw-r--r-- | tensorflow/java/README.md | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tensorflow/java/README.md b/tensorflow/java/README.md index 1811fed73a..5c5e45d4d8 100644 --- a/tensorflow/java/README.md +++ b/tensorflow/java/README.md @@ -40,22 +40,28 @@ bazel build -c opt \ //tensorflow/java:libtensorflow-jni ``` -To use the library in an external Java project, publish the library to a Maven repository. For example, -publish the library to the local Maven repository using the `mvn` tool (installed separately): +### Maven + +To use the library in an external Java project, publish the library to a Maven +repository. For example, publish the library to the local Maven repository +using the `mvn` tool (installed separately): ```sh +bazel build -c opt //tensorflow/java:pom mvn install:install-file \ - -Dfile=bazel-bin/tensorflow/java/libtensorflow.jar \ - -DpomFile=tensorflow/java/pom.xml + -Dfile=../../bazel-bin/tensorflow/java/libtensorflow.jar \ + -DpomFile=../../bazel-bin/tensorflow/java/pom.xml ``` -Refer to the library using Maven coordinates. For example, if you're using Maven then place this dependency into your `pom.xml` file: +Refer to the library using Maven coordinates. For example, if you're using +Maven then place this dependency into your `pom.xml` file (replacing +0.12.head with the version of the TensorFlow runtime you wish to use). ```xml <dependency> <groupId>org.tensorflow</groupId> <artifactId>libtensorflow</artifactId> - <version>0.12.0-SNAPSHOT</version> + <version>0.12.head</version> </dependency> ``` |