Specifying java options for tests run by surefire

To specify jvm options for a test you can use argLine system property:

http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#argLine

E.g. to set max perm size to 2 GB you can do:
mvn clean install -DargLine="-XX:MaxPermSize=2g"

Advertisements

ssh tunneling to access restricted resources

To access a resource from restricted area (let the resource be: restrictedUrl.com:443) when you can ssh to a gateway (gatewayHost):

ssh login@gatewayHost -L 8013:restrictedUrl:443

Now you can access restrictedUrl:443 on localhost:8013 on your pc.