我正在Windows Server 2012的新实例上安装DSpace 5.3,具有最新版本的Maven(3.3.3)和Ant(1.9.6)。我的mvn package
目录中的原始[dspace-src]
安装以Mirage 1作为默认接口,可以在localhost上编译并运行,而不会出现问题。
初始安装之后,我在系统上安装了Git并重新运行Maven以启用Mirage 2来构建DSpace。 (根据初步安装说明,我已经安装了Git,但未安装其余的Mirage 2依赖项):
mvn package -Dmirage2.on=true
这会产生以下错误(忽略了似乎无关的详细信息):
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Parent Project .............................. FAILURE [ 0.079 s]
[INFO] DSpace Services Framework :: API and Implementation SKIPPED
[INFO] DSpace Kernel :: API and Implementation ............ SKIPPED
[INFO] DSpace Addon Modules ............................... SKIPPED
[INFO] DSpace Kernel :: Additions and Local Customizations SKIPPED
...
[ERROR] Unknown lifecycle phase ".on=true". 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]
是什么导致此错误?
最佳答案
这看起来像是Windows Shell转义的问题,请尝试:
mvn package '-Dmirage2.on=true'