maven中jar包的上传

本地jar包布到maven仓库中
mvn install:install-file -Dfile=E:\rapid-generator-4.0.6.jar -DgroupId=com.googlecode.rapid-framework -DartifactId=rapid-generator -Dversion=4.0.6 -Dversion=4.0.6 -Dpackaging=jar

maven引入第三方jar包
<scope>system</scope> 
<systemPath>${project.basedir}/lib/jms.jar</systemPath>


<dependency>
<groupId>com.googlecode.rapid-framework</groupId>
<artifactId>rapid-generator</artifactId>
<version>4.0.6</version>
<scope>system</scope> 
<systemPath>${project.basedir}/lib/rapid-generator.jar</systemPath>
</dependency>
<dependency>
<groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.26</version>
</dependency>

你可能感兴趣的:(maven)