zoukankan      html  css  js  c++  java
  • 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_cmsmail-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

  • 相关阅读:
    HDU 4705 Y
    POJ 3614 Sunscreen
    Aizu 2170 Marked Ancestor
    POJ 3616 Milking Time
    POJ 2385 Apple Catching
    POJ 2229 Sunsets
    HDU 4678 Mine
    树的重量
    579Div3
    迷途之家2019联赛
  • 原文地址:https://www.cnblogs.com/Steven5007/p/12123392.html
Copyright © 2011-2022 走看看