Integrating Aspose.Words for Java's Maven Repo with Sonatype Nexus

I have the same issue, can you post what you did to resolve it please

@Lourdes,

Please add the following configuration to pom.xml to reference latest version of Aspose.Words for Java:

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://repository.aspose.com/repo/</url>
</repository>
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-words</artifactId>
    <version>21.2</version>
    <type>pom</type>
</dependency>

Or add the following configuration to build.gradle to reference latest version of Aspose.Words for Android via Java.

maven {
    url "https://repository.aspose.com/repo/" }
compile (
        group: 'com.aspose',
        name: 'aspose-words',
        version: '20.9',
        classifier: 'android.via.java')

I have this configuration in Nexus
image.png (2.0 KB)

image.png (35.8 KB)
image.png (1.5 KB)

This is the error

2021-02-24 13:37:06 WARN  [ool-1-thread-13] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Aspose Java API" [id=AsposeJavaAPI]
org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId="AsposeJavaAPI", requestPath="/.index/nexus-maven-repository-index.properties", remoteUrl="http://artifact.aspose.com/repo/.index/nexus-maven-repository-index.properties"]
	at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpClientRemoteStorage.java:399) ~[nexus-proxy-2.0.6.jar:na]
	at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpClientRemoteStorage.java:112) ~[nexus-proxy-2.0.6.jar:na]
	at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1096) ~[nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:459) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE]
	at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE]
	at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:589) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE]
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:814) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE]
	at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE]
	at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1131) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1016) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:890) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) [nexus-indexer-lucene-plugin-2.0.6.jar:na]
	at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:152) [nexus-app-2.0.6.jar:na]
	at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459) [plexus-task-scheduler-1.6.0.jar:na]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_75]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_75]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_75]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


2021-02-24 15:14:12 INFO  [ool-1-thread-12] - com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask - Scheduled task (Health Check: AsposeJavaAPI) started :: Health Check Management for Repository AsposeJavaAPI
2021-02-24 15:14:12 WARN  [ool-1-thread-12] - com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask - Scheduled task (Health Check: AsposeJavaAPI) failed :: Health Check Management for Repository AsposeJavaAPI (started 2021-02-24T15:14:12-05:00, runtime 0:00:00.070): peer not authenticated

@Lourdes,

Can you please replace http://artifact.aspose.com/repo/ with https://repository.aspose.com/repo/ and see how it goes on your end? It seems that something on your network (proxy server, firewall, antivirus etc) is returning HTTP 403, and disallowing/blocking access. Please check with your system administrator to find out why this is happening? Apart from Aspose.Words for Java, are you able to retrieve other Java packages from any other Maven repos?

Same results switching repo. We do have other repos being successfully retrieved. I’ll check on the network.

We checked our network setting and it looks fine on our side. When I try to browse to https://repository.aspose.com/repo/ im able to view the repo. as per the logs its looking for https://repository.aspose.com/repo/.index/nexus-maven-repository-index.properties and I can find this file when I try to browse it.

@Lourdes,

We are checking this scenario and will get back to you soon.

@Lourdes,

Can you please try to delete the folder ~/.m2/repository? It forces local Maven to re-index and should work for your case.

My local repo gets everything that is available in the Nexus repo, the issue is nexus is not ale to reach Aspose repo or it cant find the properties file one of the 2.

@Lourdes,

To investigate this issue further on our end, we have logged a ticket in our bug tracking system with ID WORDSJAVA-2537. We will further look into the details of this problem and will keep you updated on the status of linked ticket. We apologize for any inconvenience.

@Lourdes,

You mentioned that you were able to access https://repository.aspose.com/repo/.index/nexus-maven-repository-index.properties but we are unable to access this path i.e. it causes error 404 on our end.

Anyway, we are using Artifactory for hosting maven artifacts. And Artifactory representatives say: “Artifactory doesn’t use indexes for searching. We believe that indexes are the thing of the past, when machines were slow and couldn’t handle large searches on the server side.”

So, we suggest you to uncheck “Download Remote Indexes” on your Nexus Configuration page (see image.png (35.8 KB)).

The issues you have found earlier (filed as WORDSJAVA-2537) have been fixed in this Aspose.Words for Java 22.9 update also available on Maven.