Skip creating test jar when skipping unit tests.

The fix made "mvn package -Dmaven.test.skip=true" work.