【问题标题】:Pass -D parameter to maven from m2eclipse run dialog从 m2eclipse 运行对话框将 -D 参数传递给 maven
【发布时间】: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 

【问题讨论】:

    标签: eclipse maven m2eclipse


    【解决方案1】:

    这就是参数名称和值部分的用途。不过,我认为您将 -D 关闭了。

    【讨论】:

      猜你喜欢
      • 2012-05-06
      • 1970-01-01
      • 1970-01-01
      • 2019-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多