Free Support Forum - aspose.com

Not being able to use latest version of Aspose Words

Hello Aspose family,


We are fetching aspose libraries from the repo:

http://maven.aspose.com/artifactory/simple/ext-release-local/

For aspose cells we are being able to use latest version but not for words. Since, it is searching for
aspose-words-17.2.0.jar (for 17.2.0) but we have files like aspose-words-17.2.0-jdk16.jar in the repo.

Has implementation been changed? If changed how should we be able to use that.

Thanks,
HarishT

Hi HarishT,


Thanks for your inquiry. Please use following pom.xml for Aspose.Words for Java. Hope this helps you.

<span style=“font-family: “Courier New”; font-size: 9pt; font-style: italic;”><?xml version="1.0" encoding="UTF-8"?>
<pre style=“font-family: “Courier New”; font-size: 9pt;”><project xmlns=“http://maven.apache.org/POM/4.0.0
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation=“http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd>
<modelVersion>4.0.0</modelVersion>

<groupId>com.aspose</groupId>
<artifactId>AsposeWordsMavenTest</artifactId>
<version>1.0-SNAPSHOT</version>

<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://maven.aspose.com/artifactory/simple/ext-release-local/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>17.2.0</version>
<classifier>jdk16</classifier>
</dependency>

</dependencies>

</project>

Thanks for your reply.

But, since I am using grails project with gradle build tool. I am changing the version in build.gradle file.
While cleaning the project I am getting error as:
Could not find aspose-words.jar (com.aspose:aspose-words:17.7).

@HThagunna,

Thanks for your inquiry. The exception shows that the Aspose.Words’ Jar file is not available to your application. Please make sure that you are using the correct version number of Aspose.Words in build.gradle file. It is 17.7. You may get the latest version of Aspose.Words from maven repository here:
http://maven.aspose.com/artifactory/simple/ext-release-local/com/aspose/aspose-words/17.7/

Best Regards,
Tahir Manzoor