Pass -D parameter to maven from m2eclipse run dialog

12,232

That's what the parameter name and value part is for. I think you leave the -D off though.

Share:
12,232

Related videos on Youtube

fegemo
Author by

fegemo

A space hitchhiker who thinks programming will solve the fundamental question of Life, the Universe and Everything Else.

Updated on September 14, 2022

Comments

  • fegemo
    fegemo over 1 year

    I'm wondering how to pass parameters to maven's command line from the m2eclipse dialog.

    This is the script (bat) that I want to create a configuration for - using 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 
    

    This is the run as maven build dialog