zoukankan      html  css  js  c++  java
  • 每日一记8.22

    Maven 打包时引用项目中lib目录下的jar文件

    <dependency>
        <groupId>xxxxxxxx</groupId>
        <artifactid>xxxxxxx</artifactid>
        <version>2.0</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/src/main/resources/lib/xxxxxx-2.0.jar</systemPath>
    </dependency>
     
    在plugins中添加 plugin 如:
    <plugin>
        <groupid>org.springframework.boot</groupId>
        <artifactid>spring-boot-maven-plugin</artifactid>
        <configuration>
            <includeSystemScope>true</includeSystemScope>
        </configuration>
     
    </plugin>

    Maven 打包时引用项目中lib目录下的war文件

    <dependency>
        <groupId>xxxxxxxx</groupId>
        <artifactid>xxxxxxx</artifactid>
        <version>2.0</version>
        <scope>system</scope>
        <systemPath>${project.basedir}/src/main/resources/lib/xxxxxx-2.0.jar</systemPath>
    </dependency>

    <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <warSourceExcludes>src/main/resource/**</warSourceExcludes>   <warName>XXXX</warName>   <webResources>   <resource>   <directory>${project.basedir}/src/main/resources/lib</directory>              <targetPath>WEB-INF/lib</targetPath>    <filtering>true</filtering> <includes>   <include>**/*.jar</include> </includes> </resource> </webResources> </configuration> </plugin>
  • 相关阅读:
    zookeeper 入门知识
    MySQL: InnoDB的并发控制,锁,事务模型
    分布式理论: CAP、BASE (转)
    Nginx 入门了解
    基于RSA的前后端登陆密码加密JAVA实现(转)
    分库分表?如何做到永不迁移数据和避免热点? (转)
    node.js(一)
    c# 事件
    C#委托
    SQL Server控制执行计划
  • 原文地址:https://www.cnblogs.com/sunshine-2018/p/11392893.html
Copyright © 2011-2022 走看看