如何制作具有依赖关系的 wso2 企业集成器自定义调解器
How to make a wso2 enterprise integrator custom mediator with dependencies
当我在 wso2 企业集成器中创建自定义中介时,我在没有依赖项的情况下编译它(在 maven 中),因为如果我这样做,那么 wso2 不是 运行,因为包含依赖项,会破坏 wso2。
我想制作一个具有自己依赖项的 wso2 调解器。我该怎么做?
您必须将中介创建为 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>
希望对您有所帮助。
当我在 wso2 企业集成器中创建自定义中介时,我在没有依赖项的情况下编译它(在 maven 中),因为如果我这样做,那么 wso2 不是 运行,因为包含依赖项,会破坏 wso2。
我想制作一个具有自己依赖项的 wso2 调解器。我该怎么做?
您必须将中介创建为 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>
希望对您有所帮助。