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

python - What's the Pythonic way to report nonfatal errors in a parser? -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -

python - AssertionError when trying to assert return value from two dictionaries with py.test -