Spring Tool Suite
  1. Spring Tool Suite
  2. STS-596

Allow Maven-driven Grails project to use the STS Grails features

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.1.0.RELEASE
    • Component/s: GRAILS, MAVEN
    • Labels:
      None

      Description

      A Maven-driven Grails project has advantages in certain situations (e.g. ease of integration with a Continuous Integration server such as Team City). It would be nice to take advantage of the first-class support in STS for Maven, combined with the excellent new features added for Grails support. For example a MavenGrails Eclipse project could use the Maven dependency management for libraries, also adding the classpath resolution for plugins.

        Activity

        Hide
        Andrew Eisenberg (c) added a comment -

        Making some progress here. I now have the new grails-maven plugin project working and it is defining the lifecycle mapping metadata for the grails plugins. This will save a step when importing mavenized grails projects.

        Show
        Andrew Eisenberg (c) added a comment - Making some progress here. I now have the new grails-maven plugin project working and it is defining the lifecycle mapping metadata for the grails plugins. This will save a step when importing mavenized grails projects.
        Hide
        Andrew Eisenberg (c) added a comment -

        After playing around a bit, there are a few things that are complicated, but we could make easier through the tooling. Installing plugins is a bit more involved. Here is how you do it for a mavenized grails project:

        1. add a dependency in the pom
        2. run mvn compile on command line to install the dependencies in the .grails folder
        3. In STS, run maven -> update project to update the project's classpath to add new jars
        4. run grails -> refresh dependencies to update the plugin sources.

        The steps must be run in order. We should be able to do this programmatically when dependencies change. A concern that I have is that it will take significantly longer to make any changes to the pom than before.

        Show
        Andrew Eisenberg (c) added a comment - After playing around a bit, there are a few things that are complicated, but we could make easier through the tooling. Installing plugins is a bit more involved. Here is how you do it for a mavenized grails project: add a dependency in the pom run mvn compile on command line to install the dependencies in the .grails folder In STS, run maven -> update project to update the project's classpath to add new jars run grails -> refresh dependencies to update the plugin sources. The steps must be run in order. We should be able to do this programmatically when dependencies change. A concern that I have is that it will take significantly longer to make any changes to the pom than before.
        Hide
        Andrew Eisenberg (c) added a comment -

        I've gotten the basics working now and I am throwing graven integration out into the wild so that you all can use it in anger and give me some feedback as to what is working.

        Don't try anything yet. You will need to use the 3.1.0.M1 build as well as a snapshot 2.1.1-SNAPSHOT of grails-maven. Have a look at the N&N for 3.1.0.M1 for more instructions.

        Show
        Andrew Eisenberg (c) added a comment - I've gotten the basics working now and I am throwing graven integration out into the wild so that you all can use it in anger and give me some feedback as to what is working. Don't try anything yet. You will need to use the 3.1.0.M1 build as well as a snapshot 2.1.1-SNAPSHOT of grails-maven. Have a look at the N&N for 3.1.0.M1 for more instructions.
        Hide
        Andrew Eisenberg (c) added a comment -

        GGTS 3.1.0.M1 is out and it now has experimental support for mavenized projects.

        http://forum.springsource.org/showthread.php?130130-Working-with-Mavenized-Grails-projects-in-GGTS-3-1-0

        Things are still a bit rough around the edges, and will get better for M2. But, please try this out and comment.

        Show
        Andrew Eisenberg (c) added a comment - GGTS 3.1.0.M1 is out and it now has experimental support for mavenized projects. http://forum.springsource.org/showthread.php?130130-Working-with-Mavenized-Grails-projects-in-GGTS-3-1-0 Things are still a bit rough around the edges, and will get better for M2. But, please try this out and comment.
        Hide
        Andrew Eisenberg (c) added a comment -

        Now available. Any further problems or feature requests should go in new issue.

        Show
        Andrew Eisenberg (c) added a comment - Now available. Any further problems or feature requests should go in new issue.

          People

          • Assignee:
            Andrew Eisenberg (c)
            Reporter:
            Rob Purcell
          • Votes:
            14 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: