3

WSO2 Balana 是否有任何公共 Maven 存储库?

我想在我的项目 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>

为了运行此代码

Balana balana = Balana.getInstance();
PDP pdp = new PDP(balana.getPdpConfig());
pdp.evaluate(xacmlRequest);
4

1 回答 1

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>
于 2015-10-20T09:35:04.037 回答