All GroupDocs packages are hosted at GroupDocs Artifact Repository. You can download packages or reference GroupDocs.Viewer for Java API directly in your Maven project using following steps.
Tip
Download a sample Maven application that demonstrates using GroupDocs.Viewer for Java. You can run the application locally with mvn exec:java command.
Add GroupDocs Artifact Repository
Add GroupDocs Artifact Repository to your pom.xml file:
To get started, download the latest version of GroupDocs.Viewer for Java (JAR file) from GroupDocs Artifact Repository. Also, make sure you have Java installed.
Create application
Tip
You can download the sample application and proceed to building it.
To run the application type the command below. As a result two HTML documents will be created in the current directory for the first two pages of the document.