在公司安装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文件中:
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>active的值为true表示激活该代理
<protocol>http</protocol>protocol表示使用的代理协议,这里是http
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
<!--代理-->
<proxy>
<id>代理标识</id>
<active>true</active>
<protocol>http</protocol>
<username>代理:用户名</username>
<password>代理:密码</password>
<host>代理:服务器地址</host>
<port>代理:端口</port>
<!--nonProxyHosts>local.net|some.host.com</nonProxyHosts-->
</proxy>
</proxies>
在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] ------------------------------------------------------------------------
相关推荐
更新本地仓库命令 mvn help:system 回车如图是成功: 失败报错如下: Failed to execute goal org.apache.maven.plugins:maven-help-plugin:3.1.0:system (default-cli) on project standalone-pom: ...
很多人配置maven文件出错,执行mvn -v没问题,但是执行mvn help:system报错,最终解决办法就是用一个配置好的替换就行,记得改一下本地仓库路径<localRepository>E:\maven\repository,改成你的本地仓库路径,然后再...
- 在命令行中输入 `mvn help:system`,这将触发Maven从远程仓库下载必要的组件和依赖库到本地仓库。 #### 配置MyEclipse中的Maven 1. **打开MyEclipse**: - 通过菜单栏选择 `Window > Preferences > MyEclipse >...
- 在命令提示符中输入`mvn help:system`,该命令会显示Maven的系统信息,包括本地仓库的位置。 #### 四、向Maven本地仓库添加JAR包 **1. 使用命令行安装** - 假设需要安装名为`memcached-2.3.1.jar`的JAR包。 ...
- 从中央仓库下载文件至本地仓库:`mvn help:system` 这些命令帮助开发者快速搭建项目、管理和构建应用程序,确保代码质量,并简化了依赖管理。在实际开发中,熟练掌握这些 Maven 命令能极大地提高工作效率。
修 改 完 成 之 后 进 入 DOS 窗 口 输 入 :mvn help:system 运行这条命令的就会下载maven-help-plugin,包括 pom 文件和 jar 文件,这些都会被下载到 maven 的本地仓库 下载完之后,我们的把 apache-maven-3.0 ...
mvn help:system 如果前面的配置成功,那么D:\Program Files\Apache\maven-repository会出现一些文件。 四、配置Eclipse的Maven环境 1. Eclipse Oxygen,打开Window->Preferences->Maven->Installations,右侧点击...
4. 输入命令:mvn help:system,验证仓库配置是否正确 五、Myeclipse 结合 Maven 快速配置搭建 Web 项目: 1. 打开 Myeclipse,进入 Window-Preference-Myeclipse-Maven 设置 Maven 安装路径 2. 设置当前库地址 3....
5. **验证环境变量**:打开命令行窗口(确保是在配置完环境变量后新开的),执行 `echo %M2_HOME%` 检查 `M2_HOME` 是否设置正确,然后运行 `mvn -v` 查看 Maven 和 JDK 的版本信息,确认安装成功。 6. **Maven ...
- **命令**: `mvn help:system` - **功能**: 显示Maven的系统信息,包括环境变量等。 - **应用场景**: 诊断问题或了解Maven环境配置。 #### 21. `mvn help:active-profiles` - **命令**: `mvn help:active-profiles...
1. **创建本地仓库**: 运行`mvn help:system`命令后,在用户目录下的`.m2`文件夹即为本地仓库。 2. **复制配置文件**: 将`apache-maven-3.0.3\conf`目录下的`settings.xml`文件复制到用户目录下的`.m2`文件夹中。该...
- system:与 provided 类似,但需要用户明确提供其 JAR 文件,Maven 不会在远程仓库查找。 例如,要将 Hibernate 依赖设置为测试范围,可以在 pom.xml 中这样配置: ```xml <groupId>hibernate <artifactId>...
- **输入命令**: 输入 `mvn -version` 或 `mvn help:system` 来查看 Maven 版本或详细配置信息。 #### 四、在 IntelliJ IDEA 2022.2.3 中部署 Maven **4.1 打开 IDEA 并配置 Maven** - **打开 IDEA**: 启动 ...
- 使用命令`mvn help:system`验证配置是否正确。如果正确,可以看到在自定义的仓库路径下会自动下载所需的依赖。 #### 四、创建Maven项目 - **使用命令行创建项目**: - 运行命令`mvn archetype:create -...
Maven社区定期发布新版本,你可以通过`mvn help:system`查看当前使用的Maven版本。如果想升级,只需重复上述步骤,用新版本替换旧版本,并更新环境变量。 以上就是在Linux系统上安装和配置Maven的详细步骤。理解并...
- **使用Maven帮助插件**:通过命令行使用`mvn help:system`等命令来获取更多信息。 #### 8. Maven示例 - **简单Maven项目**: - 创建一个简单的项目结构。 - 构建项目,包括编译、打包等步骤。 - 配置项目对象...
之后,可以通过`mvn help:system`命令来查看所有系统属性和环境变量,确认是否正确。 #### 二、MyEclipse10与Maven集成配置 MyEclipse是一款非常强大的集成开发环境,支持多种语言的开发,尤其是Java EE开发领域...
打开命令行 CMD,执行 `mvn help:system` 会发现 Maven 会将从远程库下载的 jar 包都会放到新修改后的路径 E:/m2/repository 中了。 结论 ---------- 手动配置本地仓库路径可以解决 Maven 的默认配置问题,提高...