mvn clean install 在做测试时卡住了 - 我错过了什么? [英] mvn clean install stuck when doing tests - what am i missing?

查看:59
本文介绍了mvn clean install 在做测试时卡住了 - 我错过了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序作为 Windows 服务运行,所以我修改了我的 pom 以包含可执行/真.

I want to run my app as a windows service so i modified my pom to include executable / true.

我尝试了mvn clean install" - 片刻之后,它开始进行测试,但在 3 个多小时后,它仅显示有关 websocket 的消息.我的项目中有 websocket,但有什么问题?为什么运行时间长?我错过了什么吗?

I tried "mvn clean install" - after a few moments, it starts doing tests but after more than 3 hours it shows only messages about websocket. I have websocket in my project, but what is the problem? Why the long running time ? Am i missing something ?

我对图片感到抱歉,我认为图片会说的比我能说的多.我的项目唯一的新东西是 pom.xml 中的可执行文件 - true".我删除了它并尝试 mvn clean install ,但又失败了.我在想这与我的 mvn 包有关吗?我开始一一删除它们以识别来源.

I'm sorry about the picture, i thought the image would say more than i could say. The only thing new about my project is the "executable - true " in the pom. I removed it and tried mvn clean install with another failure. I am thinking it has something to do with my mvn packages ? I am starting to remove them one by one to identify the source.

我找到了来源:删除 websocket 依赖项在 2 分钟内完成了 mvn 全新安装.讯息是什么?我的 websocket 有问题吗?它是 spring-boot-starter-websocket 依赖.

I found the source: removing websocket dependency completes mvn clean install in under 2 minutes. What is the message? Is it something wrong with my websocket ? It is the spring-boot-starter-websocket dependency.

我不明白,为什么在 intellij 中运行该应用程序有效,而 mvn clean install 却没有?

I don't understand, why running the app in intellij works and mvn clean install doesn't ?

推荐答案

在模拟本地项目后,我相信本地测试会保持连接打开并且不会让 spring 结束.检查测试并首先取消注释以隔离问题.

After simulating on a local project i believe that a local test is keeping the connection open and won't let spring finish. Check the test and first uncomment it to isolate the problem.

这篇关于mvn clean install 在做测试时卡住了 - 我错过了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆