Maven bug记录:Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].

清疚 2024-02-23 00:56 106阅读 0赞

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

在pom.xml配置中增加

  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.springframework.boot</groupId>
  5. <artifactId>spring-boot-maven-plugin</artifactId>
  6. </plugin>
  7. <plugin><!--编译跳过测试文件检查的生命周期-->
  8. <groupId>org.apache.maven.plugins</groupId>
  9. <artifactId>maven-surefire-plugin</artifactId>
  10. <configuration>
  11. <skip>true</skip>
  12. </configuration>
  13. </plugin>
  14. </plugins>
  15. <resources>
  16. <!--如果pro和xml文件放在源码java包下,也需要编译-->
  17. <resource>
  18. <directory>src/main/java</directory>
  19. <includes>
  20. <include>**/*.properties</include>
  21. <include>**/*.xml</include>
  22. </includes>
  23. <filtering>false</filtering>
  24. </resource>
  25. </resources>
  26. </build>

注:此方法绕过测试test,不建议使用,还是踏踏实实看代码的详细报错去解决

发表评论

表情:
评论列表 (有 0 条评论,106人围观)

还没有评论,来说两句吧...

相关阅读