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

go - serving up pdfs using golang -

python - Best design pattern for collection of objects -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -