zoukankan      html  css  js  c++  java
  • IDAE 将外部jar打入本地maven仓库

    方式1:dependency 本地jar包
    <dependency> <groupId>com.hope.cloud</groupId> <!--自定义--> <artifactId>cloud</artifactId> <!--自定义--> <version>1.0</version> <!--自定义--> <scope>system</scope> <!--system,类似provided,需要显式提供依赖的jar以后,Maven就不会在Repository中查找它--> <systemPath>${basedir}/lib/cloud.jar</systemPath> <!--项目根目录下的lib文件夹下--> </dependency>
     
    方式2:编译阶段指定外部lib
    <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <compilerArguments> <extdirs>lib</extdirs><!--指定外部lib--> </compilerArguments> </configuration> </plugin>
     
    方式3:将外部jar打入本地maven仓库
    cmd 进入jar包所在路径,执行以下命令
    mvn install:install-file -Dfile=cloud.jar -DgroupId=com.hope.cloud -DartifactId=cloud -Dversion=1.0 -Dpackaging=jar
     
    引入依赖
    <dependency> <groupId>com.hope.cloud</groupId> <artifactId>cloud</artifactId> <version>1.0</version> </dependency>
  • 相关阅读:
    2013总结,新的征程开始了!
    NOIP2015滚粗记
    HelloWorld!
    For the strivers ——
    【DP】最长公共子序列
    【DP】青蛙过河
    【DP+拓扑】关键子工程
    【线段树+向量】POJ 2991 Crane
    【线段树】POJ3225 Help with intervals
    【数学】test20170311
  • 原文地址:https://www.cnblogs.com/xzants/p/7117754.html
Copyright © 2011-2022 走看看