Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8402

Adding the TRIMM Maven repository as a proxy repository to Nexus fails with an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Automatically Closed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Proxy Repository
    • Labels:
      None

      Description

      When adding the TRIMM Maven repository as a proxy repository to Nexus, I get a messagebox withe the ArrayIndexOutOfBoundsException.

      The repository can be found here: http://www.tigerteam.dk/maven2/

      Maven can deal with the repository just fine when adding it as a repositry to the POM.

      It seems as if Nexus has issues with parsing the returned HTML:
       
      jvm 1    | java.lang.StringIndexOutOfBoundsException: String index out of range: -6
      jvm 1    |      at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:872) ~[na:1.7.0_75]
      jvm 1    |      at java.lang.StringBuilder.substring(StringBuilder.java:72) ~[na:1.7.0_75]
      jvm 1    |      at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.getLinkUrl(HtmlRemoteRepositoryParser.java:173) ~[na:na]
      jvm 1    |      at org.sonatype.nexus.plugins.rrb.parsers.HtmlRemoteRepositoryParser.extractLinks(HtmlRemoteRepositoryParser.java:110) ~[na:na]
      jvm 1    |      at org.sonatype.nexus.plugins.rrb.MavenRepositoryReader.parseResult(MavenRepositoryReader.java:147) ~[na:na]
      jvm 1    |      at org.sonatype.nexus.plugins.rrb.MavenRepositoryReader.extract(MavenRepositoryReader.java:105) ~[na:na]
      jvm 1    |      at org.sonatype.nexus.plugins.rrb.RemoteBrowserResource.get(RemoteBrowserResource.java:138) ~[na:na]
      jvm 1    |      at org.sonatype.plexus.rest.resource.RestletResource.represent(RestletResource.java:233) ~[nexus-restlet1x-plugin-2.11.1-01/:na]
      jvm 1    |      at org.sonatype.nexus.rest.NexusRestletResource.represent(NexusRestletResource.java:39) ~[nexus-restlet1x-plugin-2.11.1-01/:na]
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mrumpf Michael Rumpf
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title