关于 maven 的web项目问题。jar包在maven中央仓库没有合适的或者添加依赖不成功

例如:
Maven 添加本地依赖jar包
执行 mvn package 时肯定会找不到RXTXcomm.jar

解决方法:

在pom文件中

<dependency>
	    <groupId>org.rxtx</groupId>
	    <artifactId>rxtxcomm</artifactId>
	    <version>2.2pre2</version>
	    <scope>system</scope>
        <systemPath>${basedir}\jar本地所在路径\RXTXcomm.jar</systemPath>
</dependency>

相关文章: