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

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -