Installing and Using Aspose.Words for IntelliJ IDEA - Maven

Installing Aspose Words Java for IntelliJ IDEA - Maven

Steps below demonstrate how to install Aspose.Words Java for IntelliJ IDEA (Maven) plugin.

The plugin is listed on IntelliJ IDEA’s CE official plugin website - plugin repository as Aspose Words Java for IntelliJ IDEA Maven, so you don’t need to download it manually and install it from disk, but this extra option still exists in IntelliJ IDEA.

Aspose.Words Java for IntelliJ IDEA (Maven) plugin can be easily installed (without manual downloading) from within IntelliJ IDEA. To do it:

  1. Select Settings from the File menu.
  2. Click Plugins, then browse the repositories in IntelliJ IDEA.

aspose-words-java-for-intellij-idea-1

Aspose.Words Maven Project Wizard

Installing this plugin will introduce a new project type –

aspose-words-java-for-intellij-idea-2

Aspose.Words Maven Project – into IntelliJ IDEA, which will enable you to create Aspose.Words Maven-based project for using Aspose.Words for Java API.

aspose-words-java-for-intellij-idea-3

Aspose.Words Examples Wizard

An option for creating Source Code Examples of using Aspose.Words for Java API inside the project, will also appear after the installation under “New” menu (using Right Click -> New OR File menu->New) –

aspose-words-java-for-intellij-idea-4

Aspose.Words Examples

aspose-words-java-for-intellij-idea-5

Using

Using Aspose.Words Maven Project Wizard

To create Aspose.Words Maven project for using Aspose.Words for Java API within IntelliJ IDEA, you need to have an internet connection.

Then follow the steps below:

  1. Select New Project.
  2. Select Aspose.Words Maven Project
  3. Click Next.
    aspose-words-java-for-intellij-idea-6
  4. Provide a GroupId, ArtifactId and Version for your maven project and click Next.
    aspose-words-java-for-intellij-idea-7
    You can select “Also Download Examples Source Code” checkbox to download the sample usage examples of the API (as shown in above snapshot)
  5. Provide a Project Name and Location just like when creating any Java application
    aspose-words-java-for-intellij-idea-8
  6. Click Finish.
    This will retrieve the Aspose.Words for Java API latest maven dependency reference from Aspose Cloud Maven Repository and configure it in pom.xml
    If you have selected “Also Download Examples Source Code” checkbox. Downloading of the examples will also begin from the Aspose.Words for Java API GitHub Repository
    aspose-words-java-for-intellij-idea-9
    aspose-words-java-for-intellij-idea-10
    Congratulations! circle You have successfully created Aspose.Words Maven project for using Aspose.Words for Java API.
    aspose-words-java-for-intellij-idea-11
    The created Aspose.Words for Java API Maven project is ready to be modified as per your project’s requirements.
    If you have opted to download Examples Source Codes, you can use Aspose.Words Examples wizard to copy/create the downloaded examples into your project.

Using Aspose.Words Examples Wizard

To create/copy Examples Source Codes into the project using Aspose.Words Examples Wizard, you need to first download the examples by opting  “Also Download Examples Source Code” on Aspose.Words Maven Project Wizard.

Then follow the steps below on IntelliJ IDEA:

  1. Select File => New - As shown below:
    aspose-words-java-for-intellij-idea-12
    -OR- Right-Click (on project window) => New  - As shown below:
    aspose-words-java-for-intellij-idea-13
  2. Select Aspose.Words Example Option from Menu - As shown below:
    aspose-words-java-for-intellij-idea-14
    The wizard will refresh/check for the latest available Aspose.Words for Java API Examples
    aspose-words-java-for-intellij-idea-15
  3. Aspose.Words Examples wizard dialog will appear, where you can select any examples category to create/copy the examples into your project
    Select any examples category and click Create:
    aspose-words-java-for-intellij-idea-16
  4. This will create/copy the selected category examples into the project under com.aspose.words.examples package.
    Also, any required resources for the execution of the examples will be copied to src/main/resources folder - As shown below:
    aspose-words-java-for-intellij-idea-17
    Congratulations! circle You have successfully done the following:
    1. You' have created Aspose.Words Maven Project using Aspose.Words Maven Project Wizard,
    2. You have downloaded Aspose.Words for Java API Examples Source Codes
    3. You have created/copied Examples Source Codes into your project by using Aspose.Words Examples Wizard.