关于maven的依赖,有时候会使用到Maven Repository中没有的包,也可以这样添加依赖,指定一个本地文件
<dependency>
<groupId>org.apache</groupId>
<artifactId>tomcat</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>J:/apache-tomcat-7.0.53-windows-x64/apache-tomcat-7.0.53/lib/websocket-api.jar</systemPath>
</dependency>
将自己本地的库引入pom
http://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them#364188