Grails
  1. Grails
  2. GRAILS-7053

Dependency resolution issue in 1.4

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4-M1
    • Fix Version/s: 1.3.7, 1.4-M1
    • Component/s: ContinuousBuild
    • Labels:
      None

      Description

      Our nightly build against the latest version of grails failed on this build caused by this check in.

      This is the error that is now being thrown:

      groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.resolve.EnhancedDefaultDependencyDescriptor.addRuleForModuleId() is applicable for argument types: (org.apache.ivy.core.module.id.ModuleId, java.lang.String) values: [nekohtml#nekohtml, test]
      Possible solutions: addRuleForModuleId(org.apache.ivy.core.module.id.ModuleId, java.lang.String, java.lang.String, java.lang.String)
      	at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:923)
      	at grails.util.BuildSettings$configureDependencyManager.callCurrent(Unknown Source)
      	at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:822)
      	at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:756)
      	at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source)
      	at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:738)
      	at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source)
      	at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:715)
      WARNING: There was an error loading the BuildConfig: No signature of method: org.codehaus.groovy.grails.resolve.EnhancedDefaultDependencyDescriptor.addRuleForModuleId() is applicable for argument types: (org.apache.ivy.core.module.id.ModuleId, java.lang.String) values: [nekohtml#nekohtml, test]
      Possible solutions: addRuleForModuleId(org.apache.ivy.core.module.id.ModuleId, java.lang.String, java.lang.String, java.lang.String)
      

      This is the section in our pom.xml that is probably causing the issue:

              <dependency>
                  <groupId>net.sourceforge.htmlunit</groupId>
                  <artifactId>htmlunit</artifactId>
                  <version>2.5</version>
                  <scope>test</scope>
                  <exclusions>
                      <exclusion>
                          <groupId>nekohtml</groupId>
                          <artifactId>nekohtml</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>
      

        Issue Links

          Activity

          Hide
          Siarhei_Yarkavy added a comment - - edited

          it seems some correlations with http://jira.codehaus.org/browse/GRAILS-7058

          Show
          Siarhei_Yarkavy added a comment - - edited it seems some correlations with http://jira.codehaus.org/browse/GRAILS-7058
          Hide
          Jeff Scott Brown added a comment -

          Does this appear to be fixed for you in the latest 1.4-M1 build?

          Show
          Jeff Scott Brown added a comment - Does this appear to be fixed for you in the latest 1.4-M1 build?
          Hide
          James Cook added a comment -

          All fixed, thanks. Not sure about the linked bug though...

          Show
          James Cook added a comment - All fixed, thanks. Not sure about the linked bug though...
          Show
          Jeff Scott Brown added a comment - Fixed. https://github.com/grails/grails-core/commit/c514fe3159e9658da7dd633842f93d87e28d5c33
          Hide
          Jeff Scott Brown added a comment -
          Show
          Jeff Scott Brown added a comment - The fix has been pulled on to the 1.3.x branch: https://github.com/grails/grails-core/commit/a4f3d1904e3dd3d7a56cbd2ee44c7bfd33c7a176

            People

            • Assignee:
              Jeff Scott Brown
              Reporter:
              James Cook
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development