To skip unit tests, add the following option:
$ mvn -DskipTests package
To skip JavaDoc generation, add the following option:
$ mvn -Dmaven.javadoc.skip=true package
To configure an http and https proxy, add the following option (especially because it seems that Maven on Linux doesn't always read the settings.xml file):
$ mvn -Dhttp.proxyHost=proxy -Dhttp.proxyPort=80 -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80 package