[BUG] Face API library in Maven repository is outdated
See original GitHub issueDescribe 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
- Save code snippet as Test.java.
- Download azure-cognitiveservices-faceapi-1.0.0-beta.jar from https://search.maven.org/search?q=azure faceapi.
- Open a command prompt.
- 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.
- Clone/download: https://github.com/Azure/azure-sdk-for-java
- Install Maven (https://maven.apache.org/).
- Add C:\Program Files\Maven\bin to your PATH environment variable.
- At a command prompt or git-bash shell, browse to [download location]\azure-sdk-for-java-master\cognitiveservices\data-plane\vision\faceapi
- Run: mvn package -f ./pom.xml
- That generates azure-cognitiveservices-faceapi-1.0.2-beta.jar in a folder named “target”.
- 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:
- Created 4 years ago
- Reactions:1
- Comments:11 (6 by maintainers)
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
@samvaity could you please follow up on this issue?