maven手動導入jar包到本地倉庫,引用第三方jar


運行命令:

mvn install:install-file  -Dfile=jar包的路徑  -DgroupId=gruopId中的內容  -DartifactId=actifactId的內容  -Dversion=version的內容  -Dpackaging=jar

1.cmd進入  

2.執行

mvn install:install-file -Dfile=E:\cloud_cms\mail-1.4.jar -DgroupId=javax.mail -DartifactId=mail -Dversion=1.4 -Dpackaging=jar
3.pom.xml 添加依賴
<dependency>
    <groupId>javax.mail</groupId>
    <artifactId>mail</artifactId>
    <version>1.4</version>
</dependency>

 

4.bulidpath后在pom.xml 添加第三方jar

<dependency>
     <groupId>com.amazonaws</groupId>
     <artifactId>aws-java-sdk-core</artifactId>
     <version>1.11.269</version>
     <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/aws-java-sdk-core-1.11.269.jar</systemPath>
 </dependency>

 

 

 

相關鏈接:

https://www.jianshu.com/p/280c0f75a217


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM