[英]Maven error on using Websockets in JHipster
I am trying to run a project generated using jhipster. 我正在尝试运行使用jhipster生成的项目。 I opted to use Spring Websockets while generating the project.
我选择在生成项目时使用Spring Websockets。 However on running the
mvn
command on the folder. 但是,在文件夹上运行
mvn
命令时。 I get the following error: 我收到以下错误:
[ERROR] diagnostic: C:\java_dev\workspaces\pmilive\pmi\trunk\src\main\java\id\co\allianz\pension\config\WebsocketSecurityConfiguration.java:10: error:
cannot access org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer
public class WebsocketSecurityConfiguration extends AbstractSecurityWebSocketMessageBrokerConfigurer {
^
class file for org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer not found
[ERROR] error on execute: error during compilation
Is there any other additional setting that I should add? 我应该添加其他设置吗?
No nothing special is required, I suspect that you had an error during maven dependency resolution phase. 没什么特别的要求,我怀疑您在Maven依赖关系解析阶段遇到错误。 maybe something is wrong in your
~/.m2
local repository: try deleting ~/.m2/respository/org/springframework
and re-run mvn. 也许
~/.m2
本地存储库中出了点问题:尝试删除~/.m2/respository/org/springframework
并重新运行mvn。
If you're on Windows, path is %USERPROFILE%\\.m2\\repository\\org\\springframework
. 如果您使用的是Windows,则路径为
%USERPROFILE%\\.m2\\repository\\org\\springframework
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.