URI 未注册。 blueprint.xml 中的 Jasypt

URI is not registered. jasypt in blueprint.xml

我在我的 OSGI 应用程序 blueprint.xml 中使用 jasypt 进行加密,该应用程序将部署在 Jboss fuse 服务器中,

xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0

我在 xml 文件中看到 "URI is not registered" 的错误消息。我正在使用 IntelliJ 作为我的 IDE。

有人可以帮我解决这个问题吗?我需要添加任何罐子吗?或者任何 xsi:schemaLocation?

在我的 pom.xml、

上添加以下依赖项后,此问题已解决
<dependency>
    <groupId>org.apache.karaf.jaas</groupId>
    <artifactId>org.apache.karaf.jaas.jasypt</artifactId>
    <version>2.3.4</version>
</dependency>

此依赖 jar 包含 xsd karat-jasypt-1.0.0.xsd。