question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Face API library in Maven repository is outdated

See original GitHub issue

Describe the bug The azure-faceapi-0.0.1-beta.jar and azure-cognitiveservices-faceapi-1.0.0-beta.jar files in the Maven repository are outdated (the latter was uploaded 20180518). As a result, classes like FaceAPIManager, used to authenticate to the Face service, are not available. Also, in https://github.com/Azure/azure-sdk-for-java/blob/master/README.md, in the section Cognitive Services/Vision/Face API, the Sources and Download links are outdated. The former gives me a 404. The latter gives me search results in the Maven repository that only include azure-faceapi-0.0.1-beta.jar.

Exception or Stack Trace

Test.java:7: error: cannot find symbol
            FaceAPI client = FaceAPIManager.authenticate("westus", "subscriptionKey");
                             ^
  symbol:   variable FaceAPIManager
  location: class Test
1 error

To Reproduce

  1. Save code snippet as Test.java.
  2. Download azure-cognitiveservices-faceapi-1.0.0-beta.jar from https://search.maven.org/search?q=azure faceapi.
  3. Open a command prompt.
  4. Run: javac Test.java -cp azure-cognitiveservices-faceapi-1.0.0-beta.jar

Code Snippet

import com.microsoft.azure.cognitiveservices.vision.faceapi.*;
import com.microsoft.azure.cognitiveservices.vision.faceapi.models.*;

public class Test {
    public static void main(String[] args) {
        try {
            FaceAPI client = FaceAPIManager.authenticate("westus", "subscriptionKey");
// Do something with client
        } catch (Exception e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }
    }
}

Expected behavior The code compiles.

Screenshots N/A

Setup (please complete the following information):

  • OS: Windows 10 Pro 1803
  • IDE: None
  • Version of the Library used: 1.0.0-beta

Additional context I am able to make my code compile by doing the following.

  1. Clone/download: https://github.com/Azure/azure-sdk-for-java
  2. Install Maven (https://maven.apache.org/).
  3. Add C:\Program Files\Maven\bin to your PATH environment variable.
  4. At a command prompt or git-bash shell, browse to [download location]\azure-sdk-for-java-master\cognitiveservices\data-plane\vision\faceapi
  5. Run: mvn package -f ./pom.xml
  6. That generates azure-cognitiveservices-faceapi-1.0.2-beta.jar in a folder named “target”.
  7. Compiling Test.java using this .jar file works as expected.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
samvaitycommented, Mar 31, 2022

Hello @v-jaswel, you can find the sources and download here. Do let me know if you are still facing the documentation issue.

cc: @thomasburguiere

1reaction
joshfreecommented, Feb 24, 2022

@samvaity could you please follow up on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

maven plugin out of date - Stack Overflow
it seems issue with your pom.xml file,. Make sure <artifactId>spring-boot-starter-parent</artifactId> is available in the repository, looks like ...
Read more >
How to force JDK 1.8 compliance in a Maven POM example
To force Eclipse and the Maven compiler plugin to have JDK 1.8 compliance on your new projects, simply add the following to your...
Read more >
Diagnose and troubleshoot Azure Cosmos DB Java SDK v4
Look at the Java SDK in the Azure Cosmos DB central repo, which is available open source on GitHub. It has an issues...
Read more >
Bug listing with status CONFIRMED as at 2022/12/14 03:46:34
Bug :4315 - "[Future EAPI] add support for version ranges in DEPEND" status:CONFIRMED ... Bug:87742 - "Ebuild for firedns (asynchronous DNS client library)" ......
Read more >
Spring Boot, Maven and Eclipse Errors and TroubleShooting ...
Maven downloads the dependencies (i.e. frameworks and libraries(jars)) from the Maven repository (repo.maven.apache.org). This is the error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found