Grails
  1. Grails
  2. GRAILS-10437

Maven cannot resolve dependencies in 2.3.0.RC2 from a clean installation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3-RC2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Maven cannot resolve dependencies in a vanilla installation of 2.3.0.RC2.

      I create a new Grails App, by doing the following.

      grails create-app [company-app]
      grails create-pom com.company
      mvn grails:run-app

      I would expect this to work off the bat in a release candidate. Or will the "mavenized" version of Grails 2.3 be added when the actual release come out? I have a few dependencies to custom hibernate 4 entities. It would be nice if I could manage it through maven, like I do for every other project.

      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for tv.wappzapp:wappzapp-admin-2.3:grails-app:1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 174, column 21
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]
      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
      Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
      Downloading: http://repo1.maven.org/maven2/org/grails/maven-metadata.xml
      Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/maven-metadata.xml
      Downloaded: http://repo1.maven.org/maven2/org/grails/maven-metadata.xml (249 B at 2.1 KB/sec)
      Downloaded: http://repo1.maven.org/maven2/org/mortbay/jetty/maven-metadata.xml (711 B at 6.0 KB/sec)
      Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml (22 KB at 172.9 KB/sec)
      Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml (12 KB at 91.4 KB/sec)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.931s
      [INFO] Finished at: Thu Sep 05 11:47:51 CEST 2013
      [INFO] Final Memory: 10M/146M
      [INFO] ------------------------------------------------------------------------
      [ERROR] No plugin found for prefix 'grail' in the current project and in the plugin groups [org.grails, org.mortbay.jetty, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/olivier/.m2/repository), central (http://repo1.maven.org/maven2)] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

        Activity

        Hide
        Graeme Rocher added a comment -

        Maven build tool support will be released shortly after 2.3.0 GA and is not included in the release candidates

        Show
        Graeme Rocher added a comment - Maven build tool support will be released shortly after 2.3.0 GA and is not included in the release candidates
        Hide
        Olivier Hermanus added a comment - - edited

        Ah, I figured.

        By the way, when I look at the roadmap for Grails 2.3 it says Q2. http://grails.org/Roadmap
        Has it been postponed? And if so, is there a specific date that's targeted?

        Show
        Olivier Hermanus added a comment - - edited Ah, I figured. By the way, when I look at the roadmap for Grails 2.3 it says Q2. http://grails.org/Roadmap Has it been postponed? And if so, is there a specific date that's targeted?
        Hide
        Graeme Rocher added a comment -

        It will be out very soon

        Show
        Graeme Rocher added a comment - It will be out very soon

          People

          • Assignee:
            Unassigned
            Reporter:
            Olivier Hermanus
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development