diff options
author | 2017-03-24 12:10:01 -0800 | |
---|---|---|
committer | 2017-03-24 14:05:25 -0700 | |
commit | fdf32bc5ede067b000c42f6404df8ab98e56ec11 (patch) | |
tree | 83bde09d542a0dae8c959f2f3b2f496e8171141a /tensorflow/java/maven | |
parent | 3e1676e40aace360440886d823c53cc63a98ace1 (diff) |
Java: Maven: Fix some boo boos with the Windows installation.
- The resource path should not use the platform's file separator.
- Restore the commands to download and extract the Windows native libraries.
- Unrelated tweaks the README
Change: 151161421
Diffstat (limited to 'tensorflow/java/maven')
-rw-r--r-- | tensorflow/java/maven/README.md | 10 | ||||
-rw-r--r-- | tensorflow/java/maven/run_inside_container.sh | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/tensorflow/java/maven/README.md b/tensorflow/java/maven/README.md index 885ad4afc9..2eb29a200b 100644 --- a/tensorflow/java/maven/README.md +++ b/tensorflow/java/maven/README.md @@ -54,7 +54,8 @@ conducted in a [Docker](https://www.docker.com) container. - An account at [oss.sonatype.org](https://oss.sonatype.org/), that has permissions to update artifacts in the `org.tensorflow` group. If your account does not have permissions, then you'll need to ask someone who does - to [file a ticket](https://issues.sonatype.org/) to add to the permissions. + to [file a ticket](https://issues.sonatype.org/) to add to the permissions + ([sample ticket](https://issues.sonatype.org/browse/MVNCENTRAL-1637)). - A GPG signing key, required [to sign the release artifacts](http://central.sonatype.org/pages/apache-maven.html#gpg-signed-components). ### Deploying to Maven Central @@ -97,7 +98,12 @@ EOF the private staging repository. After verifying the release, visit https://oss.sonatype.org/#stagingRepositories, find the `org.tensorflow` release and click on either `Release` to finalize the release, or `Drop` to - abort. + abort. Some things of note: + + - For details, look at the [Sonatype guide](http://central.sonatype.org/pages/releasing-the-deployment.html). + - Syncing with [Maven Central](http://repo1.maven.org/maven2/org/tensorflow/) + can take 10 minutes to 2 hours (as per the [OSSRH + guide](http://central.sonatype.org/pages/ossrh-guide.html#releasing-to-central)). 4. Upon successful release, commit changes to all the `pom.xml` files (which should have the updated version number). diff --git a/tensorflow/java/maven/run_inside_container.sh b/tensorflow/java/maven/run_inside_container.sh index 169543b12d..684cfe1868 100644 --- a/tensorflow/java/maven/run_inside_container.sh +++ b/tensorflow/java/maven/run_inside_container.sh @@ -69,11 +69,11 @@ download_libtensorflow_jni() { else curl -L "${RELEASE_URL_PREFIX}/libtensorflow_jni-cpu-linux-x86_64-${TF_VERSION}.tar.gz" | tar -xvz -C linux-x86_64 curl -L "${RELEASE_URL_PREFIX}/libtensorflow_jni-cpu-darwin-x86_64-${TF_VERSION}.tar.gz" | tar -xvz -C darwin-x86_64 -# curl -L "${RELEASE_URL_PREFIX}/libtensorflow_jni-cpu-windows-x86_64-${TF_VERSION}.zip" -o /tmp/windows.zip + curl -L "${RELEASE_URL_PREFIX}/libtensorflow_jni-cpu-windows-x86_64-${TF_VERSION}.zip" -o /tmp/windows.zip fi -# unzip /tmp/windows.zip -d windows-x86_64 -# rm -f /tmp/windows.zip + unzip /tmp/windows.zip -d windows-x86_64 + rm -f /tmp/windows.zip # Updated timestamps seem to be required to get Maven to pick up the file. touch linux-x86_64/* touch darwin-x86_64/* |