zoukankan      html  css  js  c++  java
  • maven 添加本地jar

    方式一

    Xml代码 

    <dependency> 

    <groupId>org.apache</groupId> 

    <artifactId>test</artifactId> 

    <version>1.0</version> 

    <scope>system</scope> 

    <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/paypal_base.jar</systemPath> 

    </dependency> 


    方式二:

    添加extdirs将jar包相对路径添加到配置中,如下:

    <build>

            <plugins>

                <plugin>

                  <artifactId>maven-compiler-plugin</artifactId>

                  <configuration>

                      <source>1.6</source>

                      <target>1.6</target>

                      <encoding>UTF-8</encoding>

                      <compilerArguments>

                       <extdirs>srcmainwebappWEB-INFlib</extdirs>

                     </compilerArguments>

                  </configuration>

                </plugin>

            </plugins>

        </build>

  • 相关阅读:
    String.format in JavaScript
    dojo/domReady! 中感叹号的作用
    文本三剑客之sed的用法
    文本三剑客之grep的用法
    通配符与特殊符号
    文件属性信息
    文件属性及find命令总结
    linux系统常用命令
    系统优化
    vim编辑器 与etc目录
  • 原文地址:https://www.cnblogs.com/rigid/p/5286943.html
Copyright © 2011-2022 走看看