tensorflow / tensorflow/java

Maven complains that ${javacpp.platform.extension} is undefined

Open
#256 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
928
Forks
227
PR merge metrics
No merged PRs in 30d

Description

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows Version 10.0.19042.870
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary):
  • TensorFlow version: 0.3.1
  • Python version: N/A
  • Installed using virtualenv? pip? conda?: N/A
  • Bazel version (if compiling from source): N/A
  • GCC/Compiler version (if compiling from source): N/A
  • CUDA/cuDNN version: N/A
  • GPU model and memory: N/A

Describe the problem

The readme file references the following Maven code:

<dependency>
  <groupId>org.tensorflow</groupId>
  <artifactId>tensorflow-core-api</artifactId>
  <version>0.3.0</version>
  <classifier>linux-x86_64${javacpp.platform.extension}</classifier>
</dependency>

but it's not clear who defines ${javacpp.platform.extension}

When I add the following dependencies to my code, the build fails complaining that ${javacpp.platform.extension} is undefined:

			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-platform</artifactId>
				<version>${tensorflow.version}</version>
			</dependency>
			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-api</artifactId>
				<classifier>windows-x86_64${javacpp.platform.extension}</classifier>
				<version>${tensorflow.version}</version>
			</dependency>
			<dependency>
				<groupId>org.tensorflow</groupId>
				<artifactId>tensorflow-core-platform-gpu</artifactId>
				<version>${tensorflow.version}</version>
			</dependency>

Can you please clarify who defines this variable and what dependency I need to add to get this definition? Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README Maven dependency example and compare its classifier usage with the Windows dependencies shown in the issue. Trace where ${javacpp.platform.extension} is expected to be defined, then update the documentation so the defining dependency or required usage is explicit and the example is unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.