java / 正文

Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

2024-01-13 23:29 713 浏览
评论(0
字体大小:

在编译springboot工具类的时候报错  Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump

经过 网上搜索 得知 是由于 测试类 的问题报错 ( 而 这个工具模块里 没改动过测试类, 不可能是测试相关类写法出错 )

解决方案 跳过测试文件检查 , 

错误截图:

在这里插入图片描述

第一种方式  关闭test插件

在这里插入图片描述

成功

在这里插入图片描述

第二种  方式增加pom坐标, 跳过测试文件检查的生命周期

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin><!--编译跳过测试文件检查的生命周期-->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <!--如果pro和xml文件放在源码java包下,也需要编译-->
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
</build>

 

本文发布于程序达人 ,转载请注明出处,谢谢合作

0 人认为有用
0 评论

相关热点文章推荐

程序达人 - chengxudaren.com

一个帮助开发者成长的社区

相关文章