Configuration and Using Aspose.Total Java for Maven

Configuring Aspose.Total Java for Maven (Aspose Cloud Maven Reposiory) for a Maven Project

Below are the steps will lead you to the successful configuration of Aspose Cloud Maven Repository for your Maven Projects.

1. First of all you need to specify Aspose Cloud Maven Repository configuration / location in your Maven pom.xml as below

 <repositories>

  <repository>

    <id>AsposeJavaAPI</id>

    <name>Aspose Java API</name>

    <url>https://releases.aspose.com/java/repo/</url>

  </repository>

</repositories>

2. Define dependency of any Aspose.Java for Total API. For example, if you are Aspose.Words for Java API customer, you need to specify the following dependency to define in your pom.xml:

 <dependency>

  <groupId>com.aspose</groupId>

  <artifactId>aspose-words</artifactId>

  <version>14.5.0</version>

</dependency>

Above directive will let you create the Aspose.Words Java API maven dependency in your Maven project. Easy Job!

You can now use Aspose.Words Aspose API or can further create Aspose.Total for Java APIs dependencies in your Maven Project and use them for your project needs quite easily.

Example Maven Projects for using Aspose.Total Java for Maven

  1. An example maven project with the above configuration included is being hosted on GitHub Repository
  2. Another example project which is Spring web maven based project, demonstrate various Aspose.Total for Java APIs usage is also located on GitHub Repository.

Configuring Aspose.Total Java for Maven Javadocs

Aspose Cloud Maven Repository also supports the JavaDocs for all supported Aspose.Total for Java Product Line.

Major IDEs automatically downloads Aspose.Total for Java APIs Javadocs seemlessly and they are available right after in code windows once you define the APIs Maven dependency in pom.xml.

However there are certain options you may need to setup to configure your IDE to download Javadocs for Maven artifacts you use in your project.

Configure Eclipse IDE for JavaDocs

You may need to configure your Eclipse ID to download javadoc jars automatically for you for the Aspose Java APIs Maven dependencies you defined in your maven projects.

This can be achieved by following steps mentioned below on Eclipse IDE:

  1. Go into Window > Preferences > Maven, and
  2. Check the “Download Artifact JavaDoc” option, as shown in below snapshot:

todo:image_alt_text

Fetching Maven JavaDocs in Eclipse IDE

Just hover the mouse cursor on class name or method name in Eclipse IDE source code editor to fetch the related javadocs.

Configure NetBeans IDE for JavaDocs

For configuring NetBeans IDE to auto fetch javadoc jars for Aspose Java APIs Maven dependencies, you may need to follow the steps mentioned below on NetBeans IDE:

  1. Go into Tools > Options, then
  2. Java > Dependencies, and
  3. Select the Check Javadoc to “Every Project Open” option under Dependency Download Strategy like shown in below snapshot:

todo:image_alt_text

Fetching Maven JavaDocs in NetBeans IDE

Hold the CTRL key and just hover mouse cursor on class name or method name in NetBeans IDE source code editor to fetch the related javadocs.

Configure IntelliJ IDEA for JavaDocs

To configure IntelliJ IDEA to auto download javadoc jars for Aspose Java APIs maven dependencies, you will need to follow the below steps on IntelliJ IDEA:

  1. Go into File > Settings.. > then,
  2. Maven > Importing, and
  3. Check the “Documentation” option under Automatically Download as shown in below snapshot:

Fetching Maven JavaDocs in IntelliJ IDEA

After selecting method name or class name from source code press CTRL+Q to fetch the related javadocs, snapshot below showing javadocs.

Using

Using Aspose.Total Java for Maven

To use Aspose.Total Java for Maven (Aspose.Total for Java - Maven Artifacts) in the maven project. You first need to create / configure Aspose Maven based java project.

       For this,

After you created / configured Aspose Maven project. You can untap the power of  “Aspose.Total for Java” APIs  in Maven based java project for your development needs.

Browsing Aspose.Total Java for Maven / Aspose Cloud Maven Repository

The Aspose Cloud Maven Repository is located at the following URL.

https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo

You can browse the repository to find out the Artifacts it is currently serving, along with configuration required in pom.xml to use them in Maven based projects.