How to set proxyPort and proxyHost within a pom

I have a JBehave suite which calls a 3rd party service. Currently I need to append -Dhttp.proxyPort=myport and -Dhttp.proxyHost=myhost when running the install phase on the command line.

Is there a way of setting those properties within the pom so I can remove them from the command?

I've tried adding them within the tag at the top. And I've also tried the surefire plugin like below:



Try the <argLine> config element instead of <systemPropertyVariables> as described at the bottom of this example page from the Surefire plugin docs.

    <argLine>-Dhttp.proxyPort=myport -Dhttp.proxyHost=myhost</argLine>

Need Your Help

How to install visual studio in a shorter time?

visual-studio visual-studio-2013 visual-studio-2015

I have installed visual studio before on a couple of machines and installation end successfully each time, however, it takes SOOOO LONG !

If entity exists return a value in Entity Framework

c# entity-framework

I have Two tables "Customer" table and "Blacklist" customer table.