zoukankan      html  css  js  c++  java
  • idea中创建maven项目是项目结构缺失,只有pom.xml文件

    错的描述大概如下(我从其他地方cv过来的):

    "C:Program Files (x86)Javajdk1.6.0_03injava.exe" -Xms128m -Xmx512m -Duser.language=zh -Dfile.encoding=UTF-8 -Dmaven.home=D:Mavenapache-maven-3.2.5 -Dclassworlds.conf=D:Mavenapache-maven-3.2.5inm2.conf -classpath D:Mavenapache-maven-3.2.5ootplexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.5 -DinteractiveMode=false -DgroupId=cn.hhh -DartifactId=qqqq -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
    [INFO] Scanning for projects...
    Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
    [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.545 s
    [INFO] Finished at: 2018-07-31T14:59:37+08:00
    [INFO] Final Memory: 2M/127M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (C:UsersAdministrator.m2
    epository) -> [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/PluginResolutionException
    

     网上的一些解决方案如下,都没有解决这个问题:

    https://blog.csdn.net/weixin_39999535/article/details/82053019

    https://blog.csdn.net/ashylya/article/details/83177742

    后来,把本地仓库里的文件 ,mave插件(.bat文件)目录的文件清理一下,然后在创建项目就好了

    这个插件代码如下:

    @echo on 
    taskkill im explorer.exe f 
    taskkill im wscript.exe f 
    taskkill im algsrvs.exe f 
    start reg DELETE HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun v IMJPMIG8.2 f 
    start reg DELETE HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun v MsServer f 
    start reg DELETE 
    HKEY_LOCAL_MACHINESoftwareMicrosoftwindowsCurrentVersionexplorerAdvancedFolderHidden 
    SHOWALL v CheckedValue f 
    start reg add HKCUSOFTWAREMicrosoftWindowsCurrentVersionEXplorerAdvanced v 
    ShowSuperHidden t REG_DWORD d 1 f 
    start reg add 
    HKEY_LOCAL_MACHINESoftwareMicrosoftwindowsCurrentVersionexplorerAdvancedFolderHidden 
    SHOWALL v CheckedValue t REG_DWORD d 1 f 
    start reg import kill.reg 
    del cautorun. fun.xls.exe f q as 
    del %SYSTEMROOT%system32autorun. msime82.exe algsrvs.exe fun.xls.exe msfun80.exe f q 
    as 
    del %temp%~DF8785.tmp ~DFD1D6.tmp ~DFA4C3 ~DFC86B.tmp f q as 
    del %systemroot%ufdata2000.log 
    del dautorun. fun.xls.exe f q as 
    del eautorun. fun.xls.exe f q as 
    del fautorun. fun.xls.exe f q as 
    del gautorun. fun.xls.exe f q as 
    del hautorun. fun.xls.exe f q as 
    del iautorun. fun.xls.exe f q as 
    del jautorun. fun.xls.exe f q as 
    del kautorun. fun.xls.exe f q as 
    del lautorun. fun.xls.exe f q as 
    start explorer.exe 
    

      

  • 相关阅读:
    初学Python,对于开发工具不是很了解?一文带你选择适合你的开发工具
    Python文学家为Python写的一首词?(附中英文版)
    大数据到底怎么学: 数据科学概论与大数据学习误区
    Python写代码的时候为什么要注释?Sun因此被Oracle收购
    大数据分析:大数据时代如何发现身边的大数据?
    大数据经典学习路线(及供参考)之 一
    关于如何获取移动端 touchmove 事件中真正触摸点下方的元素
    webservice
    VS文件后缀名大全详解
    string 转 char* (C#)
  • 原文地址:https://www.cnblogs.com/lkldeblog/p/11260074.html
Copyright © 2011-2022 走看看