• springboot 本地jar发布,打war包


    1、pom 这样写:

    <build>
            <finalName>${finalName}</finalName>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                    <!-- 包含本地jar 到war-->
                    <configuration>
                        <includeSystemScope>true</includeSystemScope>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-war-plugin</artifactId>
                    <configuration>
                        <webResources>
                            <resource>
                                <directory>${project.basedir}/src/libs</directory>
                                <targetPath>WEB-INF/lib/</targetPath>
                                <includes>
                                    <include>**/*.jar</include>
                                </includes>
                            </resource>
                        </webResources>
                    </configuration>
                </plugin>
            </plugins>
    
        </build>
    

      

    <!-- 工作流集成 -->
            <dependency>
                <groupId>com.luban</groupId>
                <artifactId>workflow-comment</artifactId>
                <version>0.0.2-SNAPSHOT</version>
                <scope>system</scope>
                <systemPath>${project.basedir}/src/libs/workflow-comment-0.0.2-SNAPSHOT.jar</systemPath>
            </dependency>
            <dependency>
                <groupId>com.luban</groupId>
                <artifactId>workflow-common</artifactId>
                <version>0.0.2-SNAPSHOT</version>
                <scope>system</scope>
                <!-- 包含本地jar -->
                <systemPath>${project.basedir}/src/libs/workflow-common-0.0.2-SNAPSHOT.jar</systemPath>
            </dependency>
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${mybatis-plus.version}</version>
            </dependency>
            <!-- /工作流集成 -->
    

      

    www.beicaiduo.com
  • 相关阅读:
    Spring 整合过滤器
    Spring Boot 整合 AOP
    Linux IO模式及 select、poll、epoll详解
    java 集合之ArrayList、Vector、LinkedList、CopyOnWriteArrayList
    java 集合之HashMap、Hashtable、LinkedHashMap、TreeMap
    java modCount和fail-fast
    java ArrayList迭代过程中删除
    JVM metaspace元空间
    反转链表
    合并两个排序的链表
  • 原文地址:https://www.cnblogs.com/hoge66/p/13138294.html
Copyright © 2020-2023  润新知