【发布时间】:2012-11-19 17:17:32
【问题描述】:
我想知道如何从 m2eclipse 对话框向 maven 的命令行传递参数。
这是我要为其创建配置的脚本 (bat) - 使用 m2eclipse:
@echo off
set HOST_NAME=localhost.fds.com
set SECURE_ASSETS_PORT=9678
title Running Legacy Application
mvn -Dhostname=%HOST_NAME% -DASSET_SERVER_URL_OVERRIDE=https://%HOST_NAME%:%SECURE_ASSETS_PORT% -Dassets.port.num=9876 -Dassets.secure.port.num=%SECURE_ASSETS_PORT jetty:run -P assets
【问题讨论】: