从 org.springframework 导入 amqp 出错

import of amqp from org.springframework get error

我正在处理使用 spring 框架的现有 Scala 项目,我需要导入 org.springframework.amqp 但是当我尝试构建项目时,我得到:

Error:(15, 28) object amqp is not a member of package org.springframework import org.springframework.amqp

真的很奇怪,在正规网站上都能看到,网上很多例子都能看到。

知道问题出在哪里吗?

缺少 Maven 依赖项。这是我需要添加的内容:

<dependency>
    <groupId>org.springframework.amqp</groupId>
    <artifactId>spring-amqp</artifactId>
    <version>2.1.2.RELEASE</version>
</dependency>