我执行了这个命令
mvn org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.5:download \
-DnexusUrl=https://nexus.magnolia-cms.com \
-DtemplateId=magnolia-enterprise
在windows命令propmt中。我收到以下错误。
Unknown lifecycle phase "\". You must specify a valid lifecycle phase or
a goal in the format <plugin-prefix>:<goal> or
<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle
phases are: validate, initialize, generate-sources, process-sources, generate-resources,
process-resources , compile, process-classes, generate-test-sources,
process-test-sources, generate-test-resources, process-test-resources,
test-compile, process-test-classes, test, prepare-package, package,
pre-integration-test, integration-test, post-integration-test, verify,
install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site,
site-deploy. -> [Help 1]
------------------------------------------------------------------------
答案 0 :(得分:3)
从命令行中删除\
在Windows中,\不允许您在linux下执行多行命令。
在Windows中,多行分隔符为^