Maven Issue with Aspose Words

I am unable to retrieve aspose words using maven. Here is the error I get:

===================================================================

Failed to execute goal on project MYPROJECT: Could not resolve dependencies for project com.mycompany:MYPROJECT:war:1.0-SNAPSHOT: Failure to find com.aspose:aspose-words:jar:16.7.0 in http://maven.aspose.com/artifactory/simple/ext-release-local/ was cached in the local repository, resolution will not be reattempted until the update interval of AsposeJavaAPI has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.

Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:

[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

===================================================================

Excerpts from my pom.xml file:

===================================================================

16.7.0

AsposeJavaAPI

Aspose Java API

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

com.aspose

aspose-words

${aspose-words.version}

===================================================================

I can successfully get aspose slides, aspose pdf, and aspose cells, but aspose words isn’t working for me.

Hi Domenick,

Thanks for your inquiry. Please try using the following pom.xml:

<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>16.7.0</version>
			<classifier>jdk16</classifier>
		</dependency>
	</dependencies>

</project>

Hope, this helps.

Best regards,

This seems to resolve the problem. Do I need to change anything if we are using Java 7 as opposed to 6?

Hi Domenick,

Thanks for your inquiry. In this case, there is no need to change anything.

Best regards,

The blog post below is misleading. It doesn’t include the classifier on the words dependancy. The content of this answer should be applied to that blog post.
https://blog.aspose.com/2014/08/12/aspose-for-maven-aspose-cloud-maven-repository

Hi Steve,

Thanks for reporting this problem to us. We will be sure to update the content of blog post soon.

Best regards,