windows下安装maven后运行:mvn help:system报错

在公司安装maven后出运行命令:mvn help:system报错,报错信息如下:

C:\Users\liekkas>mvn help:system

[INFO] Scanning for projects...

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: 

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5

[警告]未能检索插件描述符org.apache.maven.plugins:maven-clean-plugin:2.5:

插件org.apache.maven.plugins:maven-clean-plugin:2.5或它的一个依赖项无法解决:

未能读org.apache.maven.plugins工件描述符:maven-clean-plugin:jar:2.5

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

install-plugin/2.4/maven-install-plugin-2.4.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4: 

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4

[警告]未能检索插件描述符org.apache.maven.plugins:maven-install-plugin:2.4:

插件org.apache.maven.plugins:maven-install-plugin:2.4或它的一个依赖项无法解决:

未能读org.apache.maven.plugins工件描述符:maven-install-plugin:jar:2.4

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

deploy-plugin/2.7/maven-deploy-plugin-2.7.pom

Downloading:http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-。

deploy-plugin / 2.7 / maven-deploy-plugin-2.7.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.7: 

Plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:2.7

[警告]未能检索插件描述符org.apache.maven.plugins:maven-deploy-plugin:2.7:

插件org.apache.maven.plugins:maven-deploy-plugin:2.7或它的一个依赖项无法解决:

未能读org.apache.maven.plugins工件描述符:maven-deploy-plugin:jar:2.7

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

site-plugin/3.3/maven-site-plugin-3.3.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: 

Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one

of its dependencies could not be resolved: Failed to read artifact descriptor for 

org.apache.maven.plugins:maven-site-plugin:jar:3.3

[警告]未能检索插件描述符org.apache.maven.plugins:maven-site-plugin:3.3:

或一个插件org.apache.maven.plugins:maven-site-plugin:3.3

的依赖关系无法解决:未能读工件描述符

org.apache.maven.plugins:maven-site-plugin:jar:3.3

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

antrun-plugin/1.3/maven-antrun-plugin-1.3.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: 

Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3

[警告]未能检索插件描述符org.apache.maven.plugins:maven-antrun-plugin:1.3:

插件org.apache.maven.plugins:maven-antrun-plugin:1.3或它的一个依赖项无法解决:

未能读org.apache.maven.plugins工件描述符:maven-antrun-plugin:jar:1.3

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: 

Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5

[警告]未能检索插件描述符org.apache.maven.plugins:maven-assembly-plugin:2.2 -beta-5:

插件org.apache.maven.plugins:maven-assembly-plugin:2.2 -beta-5或者它的一个依赖项无法解决:

未能读工件描述符org.apache.maven.plugins:maven-assembly-plugin:jar:2.2 -beta-5

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: 

Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8

[警告]未能检索插件描述符org.apache.maven.plugins:maven-dependency-plugin:2.8:

插件org.apache.maven.plugins:maven-dependency-plugin:2.8或它的一个依赖项无法解决:

未能读org.apache.maven.plugins工件描述符:maven-dependency-plugin:jar:2.8

 

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

release-plugin/2.3.2/maven-release-plugin-2.3.2.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: 

Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies 

could not be resolved: Failed to read artifact descriptor for 

org.apache.maven.plugins:maven-release-plugin:jar:2.3.2

[警告]未能检索插件描述符org.apache.maven.plugins:maven-release-plugin:2.3.2:

2.3.2插件org.apache.maven.plugins:maven-release-plugin:或者它的一个依赖项

无法解决:未能读工件描述符

2.3.2 org.apache.maven.plugins:maven-release-plugin:jar:

 

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml

 

[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central 

(http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.apache.maven.plugins / maven-metadata不能传输元数据。xml从/到中央

(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

 

[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/

to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.codehaus.mojo / maven-metadata不能传输元数据。xml的/

中央(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

 

[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from 

http://repo.maven.apache.org/maven2 was cached in the local repository, resolution 

will not be reattempted until the update interval of central has elapsed or up

dates are forced. Original error: Could not transfer metadata 

org.apache.maven.plugins/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2):

repo.maven.apache.org

[警告]org.apache.maven.plugins / maven-metadata转移失败。xml从

http://repo.maven.apache.org/maven2缓存的本地存储库,决议

之前不会reattempted之后或中部的更新间隔

日期是被迫的。原始错误:无法传输元数据

org.apache.maven.plugins / maven-metadata。xml从/到中央(http://repo.maven.apache.org/maven2):

repo.maven.apache.org

 

[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from 

http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will

not be reattempted until the update interval of central has elapsed or updates are forced. 

Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to 

central (http://repo.maven.apache.org/maven2): repo.maven.apache.org

[警告]org.codehaus.mojo / maven-metadata转移失败。xml从

http://repo.maven.apache.org/maven2缓存的本地存储库,决议

不是reattempted直到更新间隔中央强制运行或更新。

原始错误:无法转移org.codehaus.mojo / maven-metadata元数据。xml从/到

中央(http://repo.maven.apache.org/maven2):http://repo.maven.apache.org/maven2

 

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.597 s

[INFO] Finished at: 2014-08-05T08:59:52+08:00

[INFO] Final Memory: 3M/85M

[INFO] ------------------------------------------------------------------------

[ERROR] No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (F:\Repositories\Maven), central (http://repo.maven.apache.org/maven2)] -> [Help 1]

没有找到插件为前缀“帮助”在当前项目和插件组[org.apache.maven。插件,org.codehaus。魔力)可以从存储库(当地(F:\ \ Maven)仓库,中央(http://repo.maven.apache.org/maven2)]- >[1]帮助

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

要查看完整的堆栈跟踪的错误,重新运行Maven - e开关

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]  重新运行Maven使用- x开关,使完整的调试日志记录。

[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/NoPluginFoundForPrefixException

[1]帮助http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

 

分析:由于公司网络上网需要有代理设置,所以修改了maven安装目录中conf的settings.xml文件中:

 

   

   

   

      代理标识

      true

      http

      代理:用户名

      代理:密码

      代理:服务器地址

      代理:端口

     

   

 

 

 

在cmd运行:mvn help:system

  ............................下载好多

 

Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-util

s/1.5.7/plexus-utils-1.5.7.jar

Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/ma

ven-plugin-tools-api/2.4.3/maven-plugin-tools-api-2.4.3.jar (51 KB at 16.9 KB/se

c)

Downloading: http://repo.maven.apache.org/maven2/jdom/jdom/1.0/jdom-1.0.jar

Downloaded: http://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.ja

r (119 KB at 49.6 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/com/thoughtworks/xstream/xstrea

m/1.4.3/xstream-1.4.3.jar

Downloaded: http://repo.maven.apache.org/maven2/jtidy/jtidy/4aug2000r7-dev/jtidy

-4aug2000r7-dev.jar (135 KB at 31.3 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/xmlpull/xmlpull/1.1.3.1/xmlpull

-1.1.3.1.jar

Downloaded: http://repo.maven.apache.org/maven2/xmlpull/xmlpull/1.1.3.1/xmlpull-

1.1.3.1.jar (8 KB at 9.8 KB/sec)

Downloading: http://repo.maven.apache.org/maven2/xpp3/xpp3_min/1.1.4c/xpp3_min-1

.1.4c.jar

 

...............完成后

===============================================================================

========================= Platform Properties Details =========================

===============================================================================

 

===============================================================================

System Properties

===============================================================================

 

java.runtime.name=Java(TM) SE Runtime Environment

sun.boot.library.path=E:\Java\jdk\jre\bin

java.vm.version=20.10-b01

java.vm.vendor=Sun Microsystems Inc.

java.vendor.url=http://java.sun.com/

guice.disable.misplaced.annotation.check=true

path.separator=;

java.vm.name=Java HotSpot(TM) 64-Bit Server VM

file.encoding.pkg=sun.io

sun.java.launcher=SUN_STANDARD

user.country=CN

sun.os.patch.level=

java.vm.specification.name=Java Virtual Machine Specification

user.dir=C:\Users\liekkas

java.runtime.version=1.6.0_35-b10

java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment

java.endorsed.dirs=E:\Java\jdk\jre\lib\endorsed

os.arch=amd64

java.io.tmpdir=C:\Users\liekkas\AppData\Local\Temp\

line.separator=

 

java.vm.specification.vendor=Sun Microsystems Inc.

user.variant=

os.name=Windows 7

classworlds.conf=E:\Server\maven\bin\..\bin\m2.conf

sun.jnu.encoding=GBK

java.library.path=E:\Java\jdk\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:

\Windows;E:\app\liekkas\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Commo

n Files\NetSarang;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Win

dows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.

0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;E:\Java\jdk\bin;E:

\Program Files\TortoiseSVN\bin;E:\software\My Sql\mysql-5.6.16-winx64\bin;E:\Pro

gram Files\nodejs\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D

:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft

SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\B

inn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Bin

n\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssembl

ies\;D:\Program Files (x86)\VisualSVN Server\bin;E:\software\sqlite;D:\allCore\c

xf\apache-cxf-3.0.0\bin;D:\allCore\Ant\apache-ant-1.9.4-bin\bin;E:\Python34;E:\S

erver\maven\bin;C:\Users\liekkas\AppData\Roaming\npm;D:\Program Files (x86)\IDM

Computer Solutions\UEStudio\;.

java.specification.name=Java Platform API Specification

java.class.version=50.0

sun.management.compiler=HotSpot 64-Bit Tiered Compilers

os.version=6.1

user.home=C:\Users\liekkas

user.timezone=Asia/Shanghai

java.awt.printerjob=sun.awt.windows.WPrinterJob

file.encoding=GBK

java.specification.version=1.6

java.class.path=E:\Server\maven\bin\..\boot\plexus-classworlds-2.5.1.jar

user.name=liekkas

org.slf4j.simpleLogger.defaultLogLevel=info

java.vm.specification.version=1.0

sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher help:system

java.home=E:\Java\jdk\jre

sun.arch.data.model=64

user.language=zh

java.specification.vendor=Sun Microsystems Inc.

awt.toolkit=sun.awt.windows.WToolkit

java.vm.info=mixed mode

java.version=1.6.0_35

java.ext.dirs=E:\Java\jdk\jre\lib\ext;C:\Windows\Sun\Java\lib\ext

sun.boot.class.path=E:\Java\jdk\jre\lib\resources.jar;E:\Java\jdk\jre\lib\rt.jar

;E:\Java\jdk\jre\lib\sunrsasign.jar;E:\Java\jdk\jre\lib\jsse.jar;E:\Java\jdk\jre

\lib\jce.jar;E:\Java\jdk\jre\lib\charsets.jar;E:\Java\jdk\jre\lib\modules\jdk.bo

ot.jar;E:\Java\jdk\jre\classes

java.vendor=Sun Microsystems Inc.

maven.home=E:\Server\maven\bin\..

file.separator=\

java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi

sun.io.unicode.encoding=UnicodeLittle

sun.cpu.endian=little

sun.desktop=windows

sun.cpu.isalist=amd64

 

===============================================================================

Environment Variables

===============================================================================

 

CLASSWORLDS_JAR="E:\Server\maven\bin\..\boot\plexus-classworlds-2.5.1.jar"

PSMODULEPATH=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

PROGRAMW6432=C:\Program Files

COMMONPROGRAMW6432=C:\Program Files\Common Files

PROCESSOR_ARCHITECTURE=AMD64

VISUALSVN_SERVER=D:\Program Files (x86)\VisualSVN Server\

CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher

CXF_HOME=D:\allCore\cxf\apache-cxf-3.0.0

FP_NO_HOST_CHECK=NO

PATH=E:\app\liekkas\product\11.2.0\dbhome_1\bin;C:\Program Files (x86)\Common Fi

les\NetSarang;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows

\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bi

n\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;E:\Java\jdk\bin;E:\Pro

gram Files\TortoiseSVN\bin;E:\software\My Sql\mysql-5.6.16-winx64\bin;E:\Program

 Files\nodejs\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Pr

ogram Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL

Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\

VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C

:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\

;D:\Program Files (x86)\VisualSVN Server\bin;E:\software\sqlite;D:\allCore\cxf\a

pache-cxf-3.0.0\bin;D:\allCore\Ant\apache-ant-1.9.4-bin\bin;E:\Python34;E:\Serve

r\maven\bin;C:\Users\liekkas\AppData\Roaming\npm;D:\Program Files (x86)\IDM Comp

uter Solutions\UEStudio\

PROGRAMDATA=C:\ProgramData

ANT_HOME=D:\allCore\Ant\apache-ant-1.9.4-bin

SYSTEMROOT=C:\Windows

TMP=C:\Users\liekkas\AppData\Local\Temp

PROGRAMFILES(X86)=C:\Program Files (x86)

COMPUTERNAME=LIANGLEI

OS=Windows_NT

MYSQL_HOME=E:\software\My Sql\mysql-5.6.16-winx64

PROMPT=$P$G

WINDIR=C:\Windows

SYSTEMDRIVE=C:

MAVEN_HOME=E:\Server\maven

COMSPEC=C:\Windows\system32\cmd.exe

HOMEDRIVE=C:

LOGONSERVER=\\LIANGLEI

PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel

COMMONPROGRAMFILES=C:\Program Files\Common Files

PROGRAMFILES=C:\Program Files

COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files

TEMP=C:\Users\liekkas\AppData\Local\Temp

NUMBER_OF_PROCESSORS=4

USERDOMAIN=lianglei

M2_HOME=E:\Server\maven\bin\..

HOME=C:\Users\liekkas

PROCESSOR_LEVEL=6

ERROR_CODE=0

SESSIONNAME=Console

USERNAME=liekkas

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY

ASL.LOG=Destination=file

PUBLIC=C:\Users\Public

PROCESSOR_REVISION=2a07

USERPROFILE=C:\Users\liekkas

APPDATA=C:\Users\liekkas\AppData\Roaming

HOMEPATH=\Users\liekkas

LOCALAPPDATA=C:\Users\liekkas\AppData\Local

JAVA_HOME=E:\Java\jdk

MAVEN_CMD_LINE_ARGS=help:system

ALLUSERSPROFILE=C:\ProgramData

MAVEN_JAVA_EXE="E:\Java\jdk\bin\java.exe"

 

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 01:50 min

[INFO] Finished at: 2014-08-05T10:36:39+08:00

[INFO] Final Memory: 7M/86M

[INFO] ------------------------------------------------------------------------

 

本文原文地址:https://love2157dream.iteye.com/blog/2100337

 

你可能感兴趣的:(Java,-,Maven)