Maven build failed git Could not transfer artifact com.aspose:aspose-words with 403

We got exception:

Could not transfer artifact com.aspose:aspose-words:pom:16.1.0 from/to AsposeJavaAPI (Aspose Repository Browser /java/repo/): Authorization failed for https://releases.aspose.com/java/repo/com/aspose/aspose-words/16.1.0/aspose-words-16.1.0.pom 403 Forbidden

       <repository>
            <id>AsposeJavaAPI</id>
            <name>Aspose Java API</name>
            <url>https://releases.aspose.com/java/repo/</url>
        </repository>
        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
			<classifier>jdk16</classifier>
        </dependency>

1 Like

@julianprius,

Apparently your problem is related to the fact that version is missing in the dependency description. Please make sure that the dependency in your .pom file is described as follows:

...
<dependency>
	<groupId>com.aspose</groupId>
	<artifactId>aspose-words</artifactId>
	<version>24.5</version>
	<classifier>jdk16</classifier>
</dependency>
...
<repository>
	<id>AsposeJavaAPI</id>
	<name>Aspose Java API</name>
	<url>https://releases.aspose.com/java/repo/</url>
</repository>
...

Hi, we use 21.2 and it was working fine, today it breaks all the builds with that dependency.

@julianprius,
unfortunately I can’t reproduce the problem on my side. Version 21.2 downloads for a simple test project without any issues. Please send me your .pom file so that I can check the functionality of a simple project with it.

In addition, I would like to specifically draw your attention to the fact that version 21.2 is old and no longer supported. I strongly recommend using the latest version (currently 24.5). It contains the latest updates and fixes for bugs and vulnerabilities. It can be downloaded by the following link
Download Aspose.Words for Java 24.5 .