java - How to configure -D arguments in Eclipse -


i trying run maven test , testng execution. need pass config values pom.xml , when execute command using -d flag, working. how can add these values in eclipse ?

my command line argument -dusername=username , in pom.xml getting

<systempropertyvariables>     <username>${user_name}</username>                        </systempropertyvariables> 

now without specifying run configurations, when try execute testng , maven test showing error states reference undefined variable username. tried adding envirnment variables in eclipse, not working.

if go run configuration in eclipse, there tab called arguments can specify program arguments or vm arguments


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -