在Windows Server 2012上启用Mirage 2构建DSpace 5.3时,"未知生命周期阶段'.on = true'"

Nic*_*ebb 2 maven dspace

我正在一个新的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
Run Code Online (Sandbox Code Playgroud)

这会产生以下错误(剪断似乎不相关的细节):

[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
Run Code Online (Sandbox Code Playgroud)

...

[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]
Run Code Online (Sandbox Code Playgroud)

可能导致此错误的原因是什么?

Fra*_*man 5

这看起来像是windows shell转义的某种问题,请尝试:

mvn package '-Dmirage2.on=true'
Run Code Online (Sandbox Code Playgroud)