从git clone grails项目到idea并运行流程

首先clone项目

点击Clone后,idea会提示是否创建一个项目,点击yes

一路点击nest,

 把第一个构去掉,然后一路nest直至完成

 

 开打项目窗口后右击项目-Grails-Configure Grails SDK,选址grails路径

右击pom.xml-Add as Maven Project

接着修改maven的配置,点击File-settings

 

出现的问题:

问题1:

右击pom.xml文件-maven-Reimport

问题2:如果启动项目报如下错误

[ERROR] No plugin found for prefix 'grails' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (E:\share\mavenRepository\repository), central (https://repo.maven.apache.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

解决方法:

点击Edit Configurations

application要选择有server的工程,要把光标放在项目名上停留久几秒才会显示E:code/git/DrAgriculture/code/server/DrAgriclulture

 

posted @ 2017-05-01 16:20  139亿  阅读(1166)  评论(0编辑  收藏  举报