mihais
mihais

Reputation: 35

Maven dependency for AbstractHandler

I'm trying to write a custom Authentication handler for WSO2 API Manager but I have a problem loading the correct classes for this. Is there a Maven dependency that I can add to my pom, and the corresponding repository obviously, in order to get all the necessary dependencies? Thanks

Upvotes: 1

Views: 831

Answers (1)

Rajeev Sampath
Rajeev Sampath

Reputation: 2757

You can define synapse and api gateway dependencies as follows. But note that the versions depend on the respective product version. To check the correct version of the dependency, check your <product>/repository/component/plugins and track the relevant jar.

    <dependency>
        <groupId>org.apache.synapse</groupId>
        <artifactId>synapse-core</artifactId>
        <version>2.1.2-wso2v4</version>
    </dependency>

    <dependency>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>org.wso2.carbon.apimgt.gateway</artifactId>
        <version>1.2.2</version>
    </dependency>

The repo can be

    <repository>
        <id>wso2-maven2-repository</id>
        <name>WSO2 Maven2 Repository</name>
        <url>http://dist.wso2.org/maven2</url>
    </repository>

    <repository>
        <id>wso2.releases</id>
        <name>WSO2 internal Repository</name>
       <url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
     </repository>

     <repository>
        <id>wso2-nexus-repository</id>
        <name>WSO2 nexus Repository</name>
        <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
    </repository>

Upvotes: 3

Related Questions