zoukankan      html  css  js  c++  java
  • Idea新建maven项目时卡慢,两种解决方法(一个是永久解决)

    Idea新建maven项目时会很卡,可以采用如下设置;具体原因如下:

    IDEA根据maven archetype的本质,其实是执行mvn archetype:generate命令,该命令执行时,需要指定一个archetype-catalog.xml文件。

    该命令的参数-DarchetypeCatalog,可选值为:remoteinternal  local等,用来指定archetype-catalog.xml文件从哪里获取。

    默认为remote,即从 http://repo1.maven.org/maven2/archetype-catalog.xml路径下载archetype-catalog.xml文件。

    http://repo1.maven.org/maven2/archetype-catalog.xml 文件约为3-4M,下载速度很慢,导致创建过程卡住。

    解决方法:

    1新建到这步时新增:

    key为:archetypeCatalog

    Value为:internal或者lacal

       

     

     

    2、配置maven时直接配置archetypeCatalog (一劳永逸)

     新增配置:-DarchetypeCatalog=internal

     

  • 相关阅读:
    tty & pty & pts
    PageRank
    How to run a terminal inside of vim?
    vimdiff
    svn's tree conflict
    svn's diff command
    符号表分离
    gcc -D
    Options for Debugging Your Program or GCC
    invoking gdb
  • 原文地址:https://www.cnblogs.com/daguozb/p/12158610.html
Copyright © 2011-2022 走看看