只需要在pom中加入如下插件:
<plugin>
</configuration>
</plugin>
maven package编译打包jar出错解决
原文:http://blog.csdn.net/zhanjianshinian/article/details/44678377