【问题标题】:How to make a wso2 enterprise integrator custom mediator with dependencies如何制作具有依赖关系的 wso2 企业集成器自定义中介
【发布时间】:2018-07-30 08:36:31
【问题描述】:

当我在 wso2 企业集成器中创建自定义中介时,我在没有依赖项的情况下编译它(在 maven 中),因为如果我这样做,那么 wso2 不会运行,因为包含依赖项,会破坏 wso2。

我想创建一个 wso2 调解器,它有自己的依赖项。我该怎么做?

【问题讨论】:

    标签: mediator wso2ei


    【解决方案1】:

    您必须将您的中介器创建为 osgi 包(不要让 ei 将其转换为 osgi,因为那样会绑定错误的类)。我有一个类似的问题,我不得不在我的调解器中使用另一个版本的 javax.xml.crypto。因此,我像这样修改了 pom.xml 并构建了调解器。

    <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.4</version>
        <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>smybolicName</Bundle-SymbolicName>
                        <Bundle-Name>bundleName</Bundle-Name>
                        <Import-Package>
                            !javax.xml.crypto.*; version="1.4.2.patched",
                            org.apache.xml.security;version="0.0.0",
                            *
                        </Import-Package>
                    </instructions>
                </configuration>
      </plugin>
    

    希望对您有所帮助。

    【讨论】:

    • 我把罐子放在哪里,在 dropins 路径中?
    • 是的,我使用的是 esb 4.8.1 并将其放入 \repository\components\dropins
    猜你喜欢
    • 1970-01-01
    • 2017-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-06
    相关资源
    最近更新 更多