Connecting Sonatype Nexus to Aspose Repository | Validator, Remote Storage, SSL Handshake Exceptions | Cannot Fetch Index

I would like to try aspose.words in our current project.
Our setup is such that we need to get all our packages from our local Sonatype Nexus.

Our preferred approach here is to set up a proxi repository in Nexus that points to the aspose maven repository and downloads all packages that we might need.

In that setup I pointed to https://repository.aspose.com/repo/

But I am getting the following error:

Status: Unsuccessful.
Message: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Am I pointing to the correct repository?
Is there anything that I am missing?

image.png (24.8 KB)

image.png (6.9 KB)

@TMamer,

Please try the following POM.XML. Hope, this helps.
pom.zip (502 Bytes)

Hello,

I have the same problem, but the pom.zip is only private and I can’t view the solution.
Can you provide me the solution, too, or paste the content of the pom.xml here directly in text-form?

Thank you!

Kind regards
Dirk Steinkamp

@DirkSteinkamp,

You can easily use Aspose.Words for Java directly from a Maven based project by adding following configurations to your pom.xml.

    <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>20.1</version>
        <type>pom</type>
    </dependency>

Hope, this helps.

Thank you for the quick response!

I needed to access it through our nexus – it turned out we hadn’t configured the repo in nexus properly, but we had missed one detail, so it didn’t work. But we managed to fix it and it’s working now. :slight_smile:

@DirkSteinkamp,

It is great that you were able to fix the problem on your end. Please let us know any time you have any further queries in future.

1 Like

9 posts were split to a new topic: Integrating Aspose.Words for Java’s Maven Repo with Sonatype Nexus

Hey, what was the mistake ? I added the https://repository.aspose.com/repo/ as a repo URL but it does not get me anywhere on my nexus.

I don’t know what my collegue configured in the Nexus.
One thing I did as a workaround before he fixed the Nexus setup was to define the aspose-repository in my local settings.xml or in the pom.xml and make sure I excluded the aspose-repo in the mirror-section.

@sivic1,

I used default Nexus settings on my side and it works for me. I set Aspose Repository Browser /java/repo/ as a Remote storage for my Nexus proxy reppository and updated the .pom file the like this:

<repository>
	<id>AsposeJavaAPI</id>
	<name>Aspose Java API</name>
	<url>http://localhost:8081/repository/maven-aspose/</url>
</repository>

Hope, this helps you.