Grails Maven Plugin

Broken webflow maven dependency

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows Vista
    Grails 1.1
    Maven 2.1.0

Description

From: Peter Ledbrook

> <dependency>
> <groupId>org.grails</groupId>
> <artifactId>grails-webflow</artifactId>
> <version>1.1</version>
> </dependency>

Looks like the WebFlow dependencies need fixing though The
project's dependency tree shows both Spring 2.5.5 and 2.5.6 JARs,
which seem to be conflicting.

I need this dependency to do the MultiTentant plugin work in a mavenized grails project, the problem is described in GRAILS-4524.

Issue Links

Activity

Hide
Felipe Cypriano added a comment -

I've added the grails-webflow dependency to my project today but just after it the project stops running, when I remove the dependency everything gets back to normal.

Show
Felipe Cypriano added a comment - I've added the grails-webflow dependency to my project today but just after it the project stops running, when I remove the dependency everything gets back to normal.
Hide
Russ Rollins added a comment -

Same problem just happened to me using 1.1.1. I added this to my pom

<dependency>
    <groupId>org.grails</groupId>
    <artifactId>grails-webflow</artifactId>
    <version>1.1</version>
</dependency>
then executed grails:run-app and the underlying exception is:

Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
Show
Russ Rollins added a comment - Same problem just happened to me using 1.1.1. I added this to my pom
<dependency>
    <groupId>org.grails</groupId>
    <artifactId>grails-webflow</artifactId>
    <version>1.1</version>
</dependency>
then executed grails:run-app and the underlying exception is:
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NoClassDefFoundError: org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
Hide
Felipe Cypriano added a comment -

Russ, you've to use the version that matches your grails version. If you're using Grails 1.1.1 you need to used grails web-flow 1.1.1, just change your dependency to <version>1.1.1</version>:

<dependency>
    <groupId>org.grails</groupId>
    <artifactId>grails-webflow</artifactId>
    <version>1.1.1</version>
</dependency>
Show
Felipe Cypriano added a comment - Russ, you've to use the version that matches your grails version. If you're using Grails 1.1.1 you need to used grails web-flow 1.1.1, just change your dependency to <version>1.1.1</version>:
<dependency>
    <groupId>org.grails</groupId>
    <artifactId>grails-webflow</artifactId>
    <version>1.1.1</version>
</dependency>
Hide
Russ Rollins added a comment -

I can't believe I missed that. Thanks for the clarification, Felipe! After I get done banging my head on my desk I'll update my pom.

Show
Russ Rollins added a comment - I can't believe I missed that. Thanks for the clarification, Felipe! After I get done banging my head on my desk I'll update my pom.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: