Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonatype Nexus cannot mirror CodeLibs Maven repository #52

Open
sabi0 opened this issue Jul 6, 2023 · 1 comment
Open

Sonatype Nexus cannot mirror CodeLibs Maven repository #52

sabi0 opened this issue Jul 6, 2023 · 1 comment

Comments

@sabi0
Copy link

sabi0 commented Jul 6, 2023

Trying to add a proxy for CodeLibs repository to our company's Sonatype Nexus results in this error in the log:

2023-07-06 11:29:21,777+0200 ERROR [qtp195033295-194986798] ad85560 org.sonatype.nexus.rest.NexusApplication - Unhandled exception or error intercepted
java.lang.StringIndexOutOfBoundsException: String index out of range: -6
        at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:935)
        at java.lang.StringBuilder.substring(StringBuilder.java:76)
        at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.getLinkUrl(HtmlRemoteRepositoryParser.java:173)
        at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.extractLinks(HtmlRemoteRepositoryParser.java:110)
        at org.sonatype.nexus.plugins.rrb.MavenRepositoryReader.parseResult(MavenRepositoryReader.java:147)
        at org.sonatype.nexus.plugins.rrb.MavenRepositoryReader.extract(MavenRepositoryReader.java:105)
        at org.sonatype.nexus.plugins.rrb.RemoteBrowserResource.get(RemoteBrowserResource.java:138)

This seems similar to this issue:
https://stackoverflow.com/questions/44828352/how-to-solve-the-issue-of-nexus-not-finding-artifacts-from-added-repository-for

I wonder if you could do anything about this from your side?

@sabi0
Copy link
Author

sabi0 commented Jul 6, 2023

The error above is apparently caused by trying to browse CodeLibs repository via Nexus UI ("Browse Remote" tab).
Access to the artifacts is working fine (there was another configuration error preventing it initially).

Feel free to close this ticket if you think browsing repository content is not something you want to bother with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant