zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    网络编程
    正则表达式
    对空气质量历史数据的爬取
    通过移动设备行为数据预测性别年龄
    电影口碑与海报图像的相关性分析
    微博情感分析
    《python3网络爬虫开发实战》--验证码的识别
    python编程快速上手
    Echarts树图定制详解
    Servlet学习笔记【2】---Http数据包
  • 原文地址:https://www.cnblogs.com/hoge66/p/13138294.html
Copyright © 2011-2022 走看看