如何使用 WSO2 Developer Studio 重新创建 WSO2 ESB BasicAuth 处理程序示例

Howto re-create the WSO2 ESB BasicAuth-handler sample using WSO2 Developer Studio

我需要创建类似 WSO2 ESB documentation but using the WSO2 Developer Studio. On the WSO2 ESB documentation they suggest downloading one existing example 上提议的 BasicAuthHandler 的东西,但没有给出任何关于如何使用 WSO2 Developer Studio 制作它的线索。 WSO2 Developer Studio 不是为 WSO2 Carbon 平台开发自定义代码的正确方法吗?

步骤:

  1. 下载代码
  2. 运行 mvn clean install -e
  3. 使用 WSO2 Developer Studio 3.8.0 将代码导入为 maven 项目

它对我来说很好。

请检查您的 Maven 仓库中是否有 org.apache.synapse:synapse-core:jar:2.1.1-wso2v2。您可以将 wso2 maven 存储库添加到您的 pom.xml 文件中:

<repositories>
    <repository>
        <id>wso2-maven2-repository</id>
        <url>http://dist.wso2.org/maven2</url>
    </repository>
</repositories>