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.
Use the
For example:
<dependencies>
<dependency>
<span class="o"><</span><span class="n">groupId</span><span class="o">></span><span class="n">com</span><span class="o">.</span><span class="na">aspose</span><span class="o"></</span><span class="n">groupId</span><span class="o">></span>
<span class="o"><</span><span class="n">artifactId</span><span class="o">></span><span class="n">aspose</span><span class="o">-</span><span class="n">words</span><span class="o"></</span><span class="n">artifactId</span><span class="o">></span>
<span class="o"><</span><span class="n">version</span><span class="o">></span><span class="n">14</span><span class="o">.</span><span class="na">7</span><span class="o">.</span><span class="na">0</span><span class="o"></</span><span class="n">version</span><span class="o">></span>
<span class="o"><</span><span class="n">classifier</span><span class="o">></span><span class="n">jdk16</span><span class="o"></</span><span class="n">classifier</span><span class="o">></span>
</dependency>
</dependencies>
Example Maven Projects for using Aspose.Total Java for Maven
- An example maven project with the above configuration included is being hosted on GitHub Repository
- 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:
- Go into Window > Preferences > Maven, and
- Check the “Download Artifact JavaDoc” option, as shown in below snapshot:
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:
- Go into Tools > Options, then
- Java > Dependencies, and
- Select the Check Javadoc to “Every Project Open” option under Dependency Download Strategy like shown in below snapshot:
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:
- Go into File > Settings.. > then,
- Maven > Importing, and
- 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,
- You may like to manually configure / create your Maven project as explained in Configuring Aspose.Total Java for Maven
- Another thing you can do is to download the example Maven project that is hosted on GitHib Repository for this purpose.
- You can download and use any of Aspose Maven Plugins for Major IDEs to create Aspose Maven based project using the new project wizard feature in the plugin:
- You can use Aspose Maven ArcheType (hosted on Aspose Cloud Maven Repository) for creating Aspose Maven based java projects. Detailed information on Aspose Maven ArcheType can be found on the following Aspose blogs:
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.