咨询bladex把jwt源码放进bladex当工具包问题

Blade 已结 1 745
94759413
94759413 剑圣 2021-12-09 12:33

问题:

环境:2.8.0 微服务

问题描述:我需要修改jwt源码,修改后不想放到maven私服仓库里,我就把jwt包放进了bladex里,让网关和auth依赖这个工具包使用了,也正常运行了,就是 打包发布的时候报 没有找到我修改的方法报错了。


希望能够把源码工具包放进微服务当工具包正常打包和使用,不再依赖远程仓库的jar文件。


问题截图:



image.pngimage.pngimage.pngimage.pngimage.png




<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>BladeX</artifactId>
        <groupId>org.springblade</groupId>
        <version>2.8.0.RELEASE</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>blade-starter-jwt</artifactId>
    <name>${project.artifactId}</name>
    <version>${project.parent.version}</version>
    <packaging>jar</packaging>

    <dependencies>
        <!-- Redis -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>
        <!-- JWT -->
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt-impl</artifactId>
        </dependency>
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt-jackson</artifactId>
        </dependency>
        <!-- Auto -->
        <dependency>
            <groupId>org.springblade</groupId>
            <artifactId>blade-core-auto</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                    <finalName>${project.name}</finalName>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


1条回答
  •  admin
    admin (最佳回答者)
    2021-12-09 13:55

    不推荐放到bladex,推荐直接在bladex-tool修改,修改完之后执行mvn clean install,就会覆盖本地maven仓库。不需要把他推送到nexus私服也可以的。

    0 讨论(1)
提交回复