Grails
  1. Grails
  2. GRAILS-9781

CLONE - Compilation error while starting gralis after installing webflow plugin

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: WebFlow
    • Labels:
      None
    • Environment:
      Windows 7 64 bit

      Description

      Compilation error while starting grails after installing webflow plugin

      d:\ggts\workspace\XXXXX>grails install-plugin webflow 2.0.0

      Environment set to development.....
      Warning The install-plugin command is deprecated and may be removed from a future version of Grails. Plugin dependencies should be expressed in grails-app/conf/BuildConfig.groovy. See http://grails.org/doc/2.2.x/guide/conf.html#pluginDependencies.
      Plugin installed.

      d:\ggts\workspace\ppsconfig>grails compile

      Configuring classpath
      Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
      • org.grails:grails-webflow:2.0.0

        Activity

        Hide
        Graeme Rocher added a comment -

        @Jeroen Wesbeek - your configuration is incorrect and does not match the previous example I presented in the comments. Your plugin version is "2.2.0" whilst it should be "2.0.0". Please see my example that I showed previously

        Show
        Graeme Rocher added a comment - @Jeroen Wesbeek - your configuration is incorrect and does not match the previous example I presented in the comments. Your plugin version is "2.2.0" whilst it should be "2.0.0". Please see my example that I showed previously
        Hide
        Jeroen Wesbeek added a comment - - edited

        Thanks for the clarification Graeme, I was under the impression that you mixed the 2.2.0 and 2.0.0 versions in error (this tickets is about 2.0.0 and my ticket was about 2.2.0).

        It's still not clear to me as to why this happens, but as long as it works I'm good with it...

        I added documentation for this fix to my AjaxFlow plugin...

        Show
        Jeroen Wesbeek added a comment - - edited Thanks for the clarification Graeme, I was under the impression that you mixed the 2.2.0 and 2.0.0 versions in error (this tickets is about 2.0.0 and my ticket was about 2.2.0). It's still not clear to me as to why this happens, but as long as it works I'm good with it... I added documentation for this fix to my AjaxFlow plugin ...
        Hide
        Kees van Bochove added a comment -

        My guess about what happened:

        The latest published webflow plugin is 2.0.0, later versions were never published: http://repo.grails.org/grails/simple/plugins-releases-local/org/grails/plugins/webflow.

        At the time the 2.0.0 plugin was published, it had the grails-webflow 2.0.0 library as a dependency, which I recall to be working fine around that time. However, apparently this library was at some time unpublished / deleted because it does not exist anymore: http://mvnrepository.com/artifact/org.grails/grails-webflow. The latest version of grails-webflow is now 2.2.0, but even versions like 2.0.1 exist.

        The workaround Graeme published fixes this problem by effectively removing the dependency on grails-webflow 2.0.0 from the webflow plugin and explicitly declaring grails-webflow 2.2.0 (if you are using Grails 2.2.0) as dependency, which works for now.

        I guess what we are waiting for is for the maintainer of the webflow plugin to publish the current HEAD version of the webflow plugin (https://github.com/grails-plugins/grails-webflow-plugin) using Grails 2.2.0. This would solve the problem since https://github.com/grails-plugins/grails-webflow-plugin/blob/master/grails-app/conf/BuildConfig.groovy declares a dependecy on grails-webflow based on the Grails version:

            dependencies {
                compile("org.grails:grails-webflow:${grailsVersion}")
            }
        

        Graeme, are you are Burt Beckwith the maintainer of webflow? I would happy to help maintaining the plugin and run a publish-plugin command but I guess there is a good reason the webflow source is still at 2.2.0.BUILD-SNAPSHOT and not yet published?

        Show
        Kees van Bochove added a comment - My guess about what happened: The latest published webflow plugin is 2.0.0, later versions were never published: http://repo.grails.org/grails/simple/plugins-releases-local/org/grails/plugins/webflow . At the time the 2.0.0 plugin was published, it had the grails-webflow 2.0.0 library as a dependency, which I recall to be working fine around that time. However, apparently this library was at some time unpublished / deleted because it does not exist anymore: http://mvnrepository.com/artifact/org.grails/grails-webflow . The latest version of grails-webflow is now 2.2.0, but even versions like 2.0.1 exist. The workaround Graeme published fixes this problem by effectively removing the dependency on grails-webflow 2.0.0 from the webflow plugin and explicitly declaring grails-webflow 2.2.0 (if you are using Grails 2.2.0) as dependency, which works for now. I guess what we are waiting for is for the maintainer of the webflow plugin to publish the current HEAD version of the webflow plugin ( https://github.com/grails-plugins/grails-webflow-plugin ) using Grails 2.2.0. This would solve the problem since https://github.com/grails-plugins/grails-webflow-plugin/blob/master/grails-app/conf/BuildConfig.groovy declares a dependecy on grails-webflow based on the Grails version: dependencies { compile("org.grails:grails-webflow:${grailsVersion}") } Graeme, are you are Burt Beckwith the maintainer of webflow? I would happy to help maintaining the plugin and run a publish-plugin command but I guess there is a good reason the webflow source is still at 2.2.0.BUILD-SNAPSHOT and not yet published?
        Hide
        Pradeep Nambiar added a comment -

        Wondering if we had resolution on this and any work around I can try.
        Thanks

        Show
        Pradeep Nambiar added a comment - Wondering if we had resolution on this and any work around I can try. Thanks
        Hide
        Graeme Rocher added a comment -

        @Pradeep - yes there is a workaround see the installation instructions at http://grails.org/plugin/webflow

        Show
        Graeme Rocher added a comment - @Pradeep - yes there is a workaround see the installation instructions at http://grails.org/plugin/webflow

          People

          • Assignee:
            Unassigned
            Reporter:
            Pradeep Nambiar
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development