Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6007

@GrabResolver doesn't affect Ivy

    XMLWordPrintableJSON

Details

    Description

      Ivy lists the following running a script with -Divy.message.logger.level=4:

      downloadGrapes [chain] [cachedGrapes, localm2, codehaus, ibiblio, java.net2]
      return first: true
      dual: false
      -> cachedGrapes
      -> localm2
      -> codehaus
      -> ibiblio
      -> java.net2

      My script begins with:

      @Grapes([
          @GrabResolver(name = 'my-remote', root = 'http://server/nexus/content/groups/public'),
          @GrabConfig(systemClassLoader = true),
          @Grab(group = 'com.google.code.maven-config-processor-plugin', module = 'config-processor-maven-plugin', version = '2.4', transitive = false),
          @Grab(group = 'org.codehaus.plexus', module = 'plexus-container-default', version = '1.5.5', transitive = false),
          @Grab(group = 'commons-lang', module = 'commons-lang', version = '2.4', transitive = false),
          @Grab(group = 'xpp3', module = 'xpp3_min', version = '1.1.4c', transitive = false),
          @Grab(group = 'xerces', module = 'xercesImpl', version = '2.8.1', transitive = false),
      ])
      
      import org.apache.tools.ant.taskdefs.Antlib
      

      If I create a grapeConfig.xml file with "my-remote" repo, Ivy reports something like the following:

      downloadGrapes [chain] [cachedGrapes, my-remote, localm2, codehaus, ibiblio, java.net2]
      return first: true
      dual: false
      -> cachedGrapes
      -> my-remote
      -> localm2
      -> codehaus
      -> ibiblio
      -> java.net2

      It seems @GrabResolver is not being used.

      Attachments

        1. artifact.zip
          0.7 kB
          Leandro de Oliveira
        2. test.groovy
          0.2 kB
          Leandro de Oliveira
        3. test.log
          37 kB
          Leandro de Oliveira

        Activity

          People

            paulk Paul King
            lehphyro Leandro de Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: