stcaac 发表于 2018-1-14 11:07:07

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

  首先clone项目
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501145121945-838998828.png
  点击Clone后,idea会提示是否创建一个项目,点击yes
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501145411117-565374917.png
  一路点击nest,
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501145508976-524337203.png
  把第一个构去掉,然后一路nest直至完成
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501145611336-682241435.png
  开打项目窗口后右击项目-Grails-Configure Grails SDK,选址grails路径
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501150138632-1230874694.png
  右击pom.xml-Add as Maven Project
  接着修改maven的配置,点击File-settings
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501150737054-522958640.png
  出现的问题:
  问题1:
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501151126929-575063876.png
  右击pom.xml文件-maven-Reimport
  问题2:如果启动项目报如下错误
No plugin found for prefix 'grails' in the current project and in the plugin groups available from the repositories ->

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
  解决方法:
  点击Edit Configurations
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501162515882-1905472442.png
  application要选择有server的工程,要把光标放在项目名上停留久几秒才会显示E:code/git/DrAgriculture/code/server/DrAgriclulture
https://images2015.cnblogs.com/blog/913393/201705/913393-20170501162649601-1963204845.png
页: [1]
查看完整版本: 从git clone grails项目到idea并运行流程