zoukankan      html  css  js  c++  java
  • Maven项目导入本地Jar包

    在WEB-INT里面加入了lib文件夹,把我的jar包放在文件夹里。并且在pom.xml里面加入了以下语句:

    1

    2

    3

    4

    5

    6

    7

    8

    <!--  阿里大于JAR-->

         <dependency>

             <groupId>my-jar</groupId>   <!--  自己随便取-->

             <artifactId>my-jar</artifactId<!-- 自己随便取-->

             <version>1.0</version><!-- 自己随便取-->

             <scope>system</scope>

             <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/taobao-sdk-java-auto_1455552377940-20160607.jar</systemPath>

         </dependency>

     

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    <!-- 本地仓添加 插件 -->

               <plugin>

                   <groupId>org.apache.maven.plugins</groupId>

                   <artifactId>maven-shade-plugin</artifactId>

                   <executions>

                       <execution>

                           <id>make-assembly</id>

                           <phase>package</phase>

                           <goals>

                               <goal>shade</goal>

                           </goals>

                           <configuration>

                               <descriptorRefs>

                                   <descriptorRef>jar-with-dependencies</descriptorRef>

                               </descriptorRefs>

                               <finalName>xxx-jar-with-dependencies</finalName>

                           </configuration>

                       </execution>

                   </executions>

               </plugin>

  • 相关阅读:
    gdb调试libtool封装的可执行文件
    转载 Linux top命令详解
    VirtualBox使用物理硬盘建立磁盘
    【sqlServer】常用语句整理
    【c#基础】特殊集合
    【c# 基础】各种集合的不同情况下的性能
    【c#集合】Lookup 类 有序字典 SortedDictionary<TKey,TValue> 集
    【c#基础】集合--栈Stack 链表 LinkList 有序列表SortedList 字典Dictionary
    【c#基础】集合
    【c#基础】委托、Lambda表达式和事件
  • 原文地址:https://www.cnblogs.com/chenny3/p/10226125.html
Copyright © 2011-2022 走看看