升级 CXF 和 WSS4J 但找不到依赖项

Upgrading CXF and WSS4J but can't find dependencies

所以我有一个正在尝试升级 CXF 和 WSS4J 的工作项目

看起来我已经升级了我的客户端,但那是因为我将它用于 wss4j:

<dependency>
    <groupId>org.apache.wss4j</groupId>
    <artifactId>wss4j</artifactId>
    <version>2.1.8</version>
    <type>pom</type>
</dependency>

但是我的服务器抛出 ClassNotFound 异常,显然是因为 type=pom。

那么我在哪里可以找到新的 类 罐子?特别是 WSPasswordCallback。

顺便说一句,我正在使用 CXF 3.1.9

简短的回答是他们搬走了一切。你首先要看的地方是:https://mvnrepository.com/artifact/org.apache.wss4j

那是所有新的地方。从那里您只需 google 您想要的 class 并查看是否可以找到您需要的包。对我来说,WSPasswordCallback 移到了公共包中...

<dependency>
    <groupId>org.apache.wss4j</groupId>
    <artifactId>wss4j-ws-security-common</artifactId>
    <version>2.1.8</version>
</dependency>

恕我直言,这本可以更好地处理,但这是找到您需要的东西的开始。