zoukankan      html  css  js  c++  java
  • maven依赖非maven库中jar的两种方法

    1.利用

    maven-compiler-plugin
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.2</version>
    <configuration>
    <encoding>${maven.compiler.encoding}</encoding>
    <source>1.6</source> 
    <target>1.6</target>
    <compilerArguments>
    <extdirs>srcmainwebappWEB-INFlib</extdirs>
    </compilerArguments>
    </configuration>
    <executions>
    <execution>
    <phase>compile</phase>
    </execution>
    </executions>
    </plugin>

    2.利用

    dependency
    (本人未测试)
    <dependency> 
    <groupId>org.apache</groupId> 
    <artifactId>test</artifactId> 
    <version>1.0</version> 
    <scope>system</scope> 
    <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/xx.jar</systemPath> 
    </dependency>
    岁月留痕
  • 相关阅读:
    iOS数据持久化的方式
    Runtime
    <02>
    <01>
    <02>
    UIActivityIndicatorView
    <01>数据存储
    UI<10>
    UI<09>
    UI<08>
  • 原文地址:https://www.cnblogs.com/navigate/p/5589990.html
Copyright © 2011-2022 走看看