错的描述大概如下(我从其他地方cv过来的):
"C:\Program Files (x86)\Java\jdk1.6.0_03\bin\java.exe" -Xms128m -Xmx512m -Duser.language=zh -Dfile.encoding=UTF-8 -Dmaven.home=D:\Maven\apache-maven-3.2.5 -Dclassworlds.conf=D:\Maven\apache-maven-3.2.5\bin\m2.conf -classpath D:\Maven\apache-maven-3.2.5\boot\plexus-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:\Users\Administrator\.m2\repository) -> [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




所有评论(0)