Uploaded image for project: 'IvyDE (Retired)'
  1. IvyDE (Retired)
  2. IVYDE-315

using latest.integration fails using ssh resolver with StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0.beta1
    • None
    • workspace resolver
    • None
    • Windows 7 client and Solaris server

    Description

      Using a dynamic dependency like 'latest.integration' fails when using an ssh resolver. A StringIndexOutOfBoundsException is reported in the console log. This works using sftp but always fails with ssh. See my ivy.xml, ivysettings.xml and console output below.

      ivy.xml

      <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
      <info organisation="ois" module="TestIvyDe" status="integration"/>

      <dependencies>
      <dependency org="ois" name="exception" rev="latest.integration" conf="default"/>
      </dependencies>

      </ivy-module>

      ivysettings.xml

      <ivysettings>
      <settings defaultResolver="ois-ivy-repo"/>

      <!-- specify the cache location relative to the ivysettings.xml file as the Eclipse IvyDE plugin has
      problems when the same cache is referenced by different workspaces, this ensures a different cache
      is referenced in each workspace -->
      <caches defaultCacheDir="${ivy.settings.dir}/.ivy2/cache"/>

      <resolvers>
      <ssh name="ois-ivy-repo" user="orchard" userPassword="charlotte" host="junior">
      <ivy pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/ivys/ivy-[revision].xml"/>
      <artifact pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
      <artifact pattern="/uwm/ois-ivy-repo/trunk/[organisation]/[module]/[type]s/[artifact][revision]([classifier]).[ext]"/>
      </ssh>
      </resolvers>
      </ivysettings>

      IvyDE console output:

      problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/ivys with ois-ivy-repo:

      java.lang.StringIndexOutOfBoundsException String index out of range: -32

      problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/jars with ois-ivy-repo:

      java.lang.StringIndexOutOfBoundsException String index out of range: -23

      problem while listing resources in /uwm/ois-ivy-repo/trunk/ois/exception/jars with ois-ivy-repo:

      java.lang.StringIndexOutOfBoundsException String index out of range: -23

      module not found: ois#exception;latest.integration

      ==== ois-ivy-repo: tried

      /uwm/ois-ivy-repo/trunk/ois/exception/ivys/ivy-[revision].xml

      – artifact ois#exception;latest.integration!exception.jar:

      /uwm/ois-ivy-repo/trunk/ois/exception/jars/exception-[revision].jar

      /uwm/ois-ivy-repo/trunk/ois/exception/jars/exception-[revision].jar

      ::::::::::::::::::::::::::::::::::::::::::::::

      :: UNRESOLVED DEPENDENCIES ::

      ::::::::::::::::::::::::::::::::::::::::::::::

      :: ois#exception;latest.integration: not found

      ::::::::::::::::::::::::::::::::::::::::::::::

      Attachments

        Activity

          People

            Unassigned Unassigned
            murrri Richard Murray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: