maven手工添加第三方jar包

在cmd輸入框中輸入以下命令:
apache

mvn install:install-file -Dfile=D:\soft\apache-maven-3.2.3\repository\tedis-core.jar -DgroupId=com.tedis -DartifactId=tedis -Dversion=1.0 -Dpackaging=jar -DgeneratePom=truemaven


D:\soft\apache-maven-3.2.3\repository\tedis-core.jar 爲jar包存放地址spa

com.tedis groupIdcode

tedis artifactIdxml

1.0 爲版本號ci

pom中如此調用 添加到<dependencies></dependencies>標籤內cmd

<dependency>
    <groupId>com.tedis</groupId>
    <artifactId>tedis</artifactId>
    <version>1.0</version>
</dependency>
相關文章
相關標籤/搜索