查看maven详细配置

命令:

mvn help:system 

系统配置

在这里插入图片描述

环境配置

在这里插入图片描述

查看本地使用的仓库

在这里插入图片描述

不要看是build failed,如果是success反倒看不到仓库位置

在这里插入图片描述
此时再用

mvn -X  		#此处的x是大写的

error日志

[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from D:\apache-maven-3.5.4\bin\..\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\lenovo\.m2\settings.xml
[DEBUG] Reading global toolchains from D:\apache-maven-3.5.4\bin\..\conf\toolchains.xml
[DEBUG] Reading user toolchains from C:\Users\lenovo\.m2\toolchains.xml
[DEBUG] Using local repository at D:\Repository-for-maven
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for D:\Repository-for
[INFO] Scanning for projects...
[DEBUG] Using mirror aliyunmaven (https://maven.aliyun.com/repository/public) for central (ht
epo.maven.apache.org/maven2).
[DEBUG] Extension realms for project org.apache.maven:standalone-pom:pom:1: (none)
[DEBUG] Looking up lifecycle mappings for packaging pom from ClassRealm[plexus.core, parent:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.319 s
[INFO] Finished at: 2021-03-11T12:32:49+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase
oal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-v
]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sou
enerate-resources, process-resources, compile, process-classes, generate-test-sources, proces
sources, generate-test-resources, process-test-resources, test-compile, process-test-classes,
prepare-package, package, pre-integration-test, integration-test, post-integration-test, veri
tall, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help
org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this bu
u must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plu
up-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: valida
tialize, generate-sources, process-sources, generate-resources, process-resources, compile, p
classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-r
s, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test,
tion-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-
ite, post-site, site-deploy.
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:97
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the followi
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值