Idea拉取项目流程及报错解决

1.入职新公司或者开启新项目的时候,需要通过idea 引入项目
2.首先通过git地址 open 引入项目,需要

Git 下载项目:
https://blog.csdn.net/shy52134/article/details/121558689?spm=1001.2014.3001.5501

  • 获取git账号密码及权限
  • 获取git文件路径
  • 获取分支地址
3.导入项目后来,加载依赖,注意
  • 有的公司有自己的私有库

  • 一定要求取最新的setting.xml文件

  • 一般公司是这样的


      nexus-aliyun*Nexus aliyunhttp://maven.aliyun.com/nexus/content/groups/public
   
  • 还有公司是这样的
 
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云公共仓库
        https://maven.aliyun.com/repository/public
        
        
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云谷歌仓库
        https://maven.aliyun.com/repository/google
        
        
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云阿帕奇仓库
        https://maven.aliyun.com/repository/apache-snapshots
        
        
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云spring仓库
        https://maven.aliyun.com/repository/spring
        
        
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云spring插件仓库
        https://maven.aliyun.com/repository/spring-plugin
               
        
        aliyunmaven
        *,!fluent,!fluent-mybatis,!jeecg,!jeecg-snapshots,!getui-nexus
        阿里云中心插件仓库
        https://maven.aliyun.com/repository/central
       
  
   
  • 公司自己的私有库是这样的
  
   
   
   admin
   admin
   
   
   most
   admin
   admin
   
   
   beautiful
   admin
   admin
   
   
   
   
   love
   love
   http://maven.most.beatutiful.com.cn/love/content/groups/
   *
   
   
   
   
   mostPublic
   lovelocal private lovehttp://maven.most.beatutiful.com.cn/love/content/groups
   
   nexusMaven China Mirrorhttp://maven.most.beatutiful.com.cn/love/content/groups
   
   
   
   
   lovePublic
   

注意防坑

4.配置新项目
  • 安装JDK,SDK
  • 引入插件例如:
  • https://www.cnblogs.com/mushishi/p/14835575.html

5.如果有报错

  • 可以选择Maven - 项目名称 - clean - 在install 构建
    Idea拉取项目流程及报错解决_第1张图片

  • 或者可以清除缓存从新启动
    Idea拉取项目流程及报错解决_第2张图片

  • 如果还是不可以,可以删.idea ,在清除缓存重启
    首先,打开项目根目录:项目右键-选择Open In - 选择Explorer打开文件路径
    Idea拉取项目流程及报错解决_第3张图片 然后,找到.idea,选择删除,执行上一步,清缓存重启
    Idea拉取项目流程及报错解决_第4张图片

加油!

你可能感兴趣的:(Idea工具,intellij-idea)