命令:
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