groupdocs-viewer-cloud / groupdocs-viewer-cloud-java

Java SDK to communicate with GroupDocs.Viewer REST API. View or render Word, Excel, PowerPoint, CAD, Visio, PDF, OpenDocument, email & image formats.
https://products.groupdocs.cloud/viewer/java
MIT License
2 stars 3 forks source link

Can't generate the JAR files, mvn package runs into an Error #2

Closed mrcodecloud closed 3 years ago

mrcodecloud commented 3 years ago

I am trying to build the JAR files using maven, to be used in my project but unfortunately I can't do it successfully. The command "mvn package" runs into an error while testing, details are mentioned in the attached screen shot.

Screenshot at Aug 02 17-45-41
vladimir-litvinchik commented 3 years ago

@RAZA-ABBBASI

By default Maven executes tests when running mvn package, there are a couple of options here:

  1. Skip tests with mvn package -Dmaven.test.skip=true
  2. Set AppSID and AppKey in Config.java. You can get keys at https://dashboard.groupdocs.cloud/.
mrcodecloud commented 3 years ago

@vladimir-litvinchik Thanks for the prompt response, can you please guide, Where to place the AppSID, and AppKey ?

vladimir-litvinchik commented 3 years ago

@RAZA-ABBBASI

The AppSID and AppKey can be placed in src\test\java\com\groupdocs\cloud\viewer\api\Config.java file.

mrcodecloud commented 3 years ago

Thanks @vladimir-litvinchik It's resolved, I am closing the issue

vladimir-litvinchik commented 3 years ago

@RAZA-ABBBASI

Thank you for the response! We've updated the README to avoid such issues in the future.

Have a nice day!