Maven Repo no longer available

We no longer have access to the repository. We always get the following error:

Caused by: The following artifacts could not be resolved: com.aspose:aspose-words:pom:24.10 (present, but unavailable): Could not transfer artifact com.aspose:aspose-words:pom:24.10 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [AsposeJavaAPI (http://repository.aspose.com/repo/, default, releases+snapshots)]

Any ideas to why its not longer available from the repo?

@waynepope2020

It seems that you are encountering issues with accessing the Aspose Maven repository, specifically for the aspose-words artifact. The error message indicates that the artifact could not be resolved due to a blocked mirror for repositories.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Check Repository URL: Ensure that you are using the correct repository URL. The Aspose Maven repository should be accessed via HTTPS. You can update your pom.xml to use the following URL:

    <repository>
        <id>AsposeJavaAPI</id>
        <url>https://repository.aspose.com/repo/</url>
    </repository>
    
  2. Update Artifact Version: If you are using an older version of the artifact, consider updating to a newer version. For example, if you are trying to use version 22.3, you might want to switch to a more recent version if available.

  3. Check for JDK Compatibility: Ensure that you are specifying the correct JDK version in your pom.xml. For instance, if you are using JDK 16, your dependency should look like this:

    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-words</artifactId>
        <version>22.3</version>
        <classifier>jdk16</classifier>
    </dependency>
    
  4. Clear Local Repository Cache: Sometimes, clearing your local Maven repository cache can help resolve dependency issues. You can do this by deleting the .m2/repository/com/aspose directory.

  5. Check Network Issues: Ensure that there are no network issues or firewall settings that might be blocking access to the repository.

If you continue to experience issues, consider reaching out to Aspose support or checking their forums for any announcements regarding repository changes or outages.

Sources:
[1]: Problem with the Maven repository

@waynepope2020 You should use https://releases.aspose.com/java/repo/.

<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>
    <version>24.10</version>
    <classifier>jdk17</classifier>
</dependency>

Thanks - I just noticed it was http and not https!!

1 Like