3

Is there any public Maven repository of WSO2 Balana?

I'd like to use this dependency in my project pom

<dependency>
  <groupId>org.wso2.balana</groupId>
  <artifactId>balana</artifactId>
  <version>1.0.1</version>
<dependency>
<dependency>
  <groupId>org.wso2.balana</groupId>
  <artifactId>balana-core</artifactId>
  <version>1.0.1</version>
<dependency>

in order to run this code

Balana balana = Balana.getInstance();
PDP pdp = new PDP(balana.getPdpConfig());
pdp.evaluate(xacmlRequest);
Tunaki
  • 132,869
  • 46
  • 340
  • 423
Spyna
  • 490
  • 3
  • 12

1 Answers1

4

Yes, there are two actually, dependending on which version you depend on:

  • One for versions before and including 1.0.0-wso2v7 here.
  • One for versions after and including 1.0.0-wso2v8 here.

If you depend on Balana 1.0.1, you then need to add the second repository to your POM or settings.xml:

<repository>
  <id>wso2-nexus</id>
  <url>http://maven.wso2.org/nexus/content/repositories/releases</url>
</repository>

And then declare the dependency with:

<dependency>
  <groupId>org.wso2.balana</groupId>
  <artifactId>org.wso2.balana</artifactId>
  <version>1.0.1</version>
<dependency>
Tunaki
  • 132,869
  • 46
  • 340
  • 423
  • `compile group: 'org.wso2.balana', name: 'org.wso2.balana', version: '1.1.2'` this is what worked for my gradle project. – Akshay Apr 19 '17 at 03:52
  • unfortunately for 2022 "Since Maven 3.8.1 http repositories are blocked." and this dependency does not work. Several workarounds must be applied – thahgr Feb 14 '22 at 09:09