Search code examples
eclipsejenaapache-jena

How to access "permissions" package in Apache Jena?


I consider migrating a project to Apache Jena but can't get my mind around Jena's architecture. In this example...

https://github.com/apache/jena/tree/master/jena-permissions/src/example/java/org/apache/jena/permissions/example

... we make use of the "permissions" package.

But when I try to imitate what they do in the example using Eclipse and importing the *.jar files from apache-jena-3.1.1 as dependencies, the package org.apache.jena.permissions seems to be missing or inaccessible. Other packages such as org.apache.jena.rdf.model are accessible.

How can I access this package? Thank you very much.

-- Okay, I found the package at Maven: https://jena.apache.org/download/maven.html Is this the only way to get it, even if you do not use Maven?


Solution

  • mvnrepository.com is usually a better place to search for a Java package:

    enter image description here

    If you still want to include JARs by hand (the link above is highlighted), don't forget to manually resolve the JARs that jena-permissions depends on:

    enter image description here

    P.S. I side with @AndyS that learning a dependency management system is 100% worth the effort.