{"id":16456175,"url":"https://github.com/amitjoy/dependency-graph-osgi","last_synced_at":"2026-03-17T01:38:34.590Z","repository":{"id":40294055,"uuid":"151530136","full_name":"amitjoy/dependency-graph-osgi","owner":"amitjoy","description":"Dependency Graph in OSGi","archived":false,"fork":false,"pushed_at":"2023-12-05T22:07:30.000Z","size":241,"stargazers_count":19,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-12T10:24:58.976Z","etag":null,"topics":["bnd","dependency-graph","graph","osgi"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amitjoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-04T06:48:55.000Z","updated_at":"2024-09-10T19:54:04.000Z","dependencies_parsed_at":"2022-07-15T20:00:46.074Z","dependency_job_id":null,"html_url":"https://github.com/amitjoy/dependency-graph-osgi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitjoy%2Fdependency-graph-osgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitjoy%2Fdependency-graph-osgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitjoy%2Fdependency-graph-osgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amitjoy%2Fdependency-graph-osgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amitjoy","download_url":"https://codeload.github.com/amitjoy/dependency-graph-osgi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221849450,"owners_count":16891459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bnd","dependency-graph","graph","osgi"],"created_at":"2024-10-11T10:25:05.833Z","updated_at":"2026-03-17T01:38:29.557Z","avatar_url":"https://github.com/amitjoy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg width=\"303\" alt=\"logo\" src=\"https://user-images.githubusercontent.com/13380182/46573106-a2498180-c990-11e8-8fc0-f1a09c8764c5.png\"\u003e\n\n## Why? [![start with what and why](https://img.shields.io/badge/start%20with-why%3F-brightgreen.svg?style=flat)]()\n\nThis is an easy to use tool to visualize OSGi Dependencies in a graph. In addition, this tool also supports detection of cyclic dependencies in the plotted graph. The primary goal is to minimize the effort in analyzing big software projects based on OSGi. \n\n---------------------------------------------------------------------------------------------------------------------------------\n\n### Requirements\n\nJava 8+\n\n\n### Contribution [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)]()\nWant to contribute? Great! Check out [Contribution Guide](https://github.com/amitjoy/dependency-graph-osgi/blob/master/CONTRIBUTING.md)\n\n---------------------------------------------------------------------------------------------------------------------------------\n\n#### Project Import\n\n**Import as Maven Project**\n\nImport the project as an `Existing Maven Project` (`File -\u003e Import -\u003e Maven -\u003e Existing Maven Projects`)\n\n------------------------------------------------------------------------------------------------------------------------\n\n#### Building from Source\n\n1. Run `mvn clean package` in `com.amitinside.dependency.graph.osgi`\n2. This will build the project\n3. The target directory will contain `dependency.graph.osgi-0.0.1-SNAPSHOT-jar-with-dependencies.jar`\n\n------------------------------------------------------------------------------------------------------------------------\n\n### License\n\nThis project is licensed under EPL-2.0 [![License](http://img.shields.io/badge/license-EPL-blue.svg)](http://www.eclipse.org/legal/epl-2.0)\n\n----------------------------------------------------------------------------------------------------------------------\n\n### Usage\n\nTo use this application, you need an OBR (`OSGi Bundle Repository`) Index XML File.\n\n#### OBR Index Generation\n\n1. You need to download the bnd command line utility from https://search.maven.org/artifact/biz.aQute.bnd/biz.aQute.bnd\n2. Using terminal, switch to your workspace directory and execute - `java -jar biz.aQute.bnd.jar index */target/*.jar`\n3. This assumes that all the target artifacts are kept in `target` directory in the respective projects\n4. Alternatively, you can copy all your project JARs inside a separate directory\n5. Switch to this newly created directory in command line and execute `java -jar biz.aQute.bnd.jar index *.jar`\n6. Both the aforementioned commands will generate OBR `index.xml` in the respective directories where the command is executed\n\n#### Create Bundles List\n\n1. You need to have a file comprising the bundle symbolic names of the bundles whose dependencies will be plotted on the graph\n2. You can create a `bundles.txt` (or give it a name of your choice) with bundle symbolic names in separate lines. You can also use wildcards. For example, `com.google.*` will consider all the bundles whose symbolic names start with `com.google.` Apart from it, you can also use negations. For example, `!org.apache*` would remove all the bundles from the Graph whose symbolic names start with `org.apache`.\n\n####\n\nHelp Command: \n\n```\nusage: Dependency Graph in OSGi - Help\n -?                 Show Help\n -bundles \u003carg\u003e     Bundle List File Location\n -cycle             Check for Cycle Existence\n -debug             Turn on Debug Mode\n -edge              Show Edge Labels\n -help              Show Help\n -ns \u003carg\u003e          Namespace Type to Plot [ALL, PACKAGE, SERVICE,\n                    IDENTITY, EE, NATIVE, CONTENT, IMPLEMENTATION,\n                    CONTRACT, BUNDLE, HOST, CUSTOM] (Default ALL)\n -ns_custom \u003carg\u003e   Custom Namespace (Needs to be set if ns option is set\n                    to CUSTOM\n -obr \u003carg\u003e         OBR Index File Location\n```\n\n#### Example\n\n`java -jar dependency.graph.osgi-0.0.1-SNAPSHOT-jar-with-dependencies.jar -obr index.xml -bundles bundles.txt -edge` - Plot the matched bundles from bundles.txt using the specified OBR index.xml with edge labels\n\n--------------------------------------------------------------------------------------------------------------\n\n### Tools Used\n\n1. https://bnd.bndtools.org\n2. http://graphstream-project.org\n\n------------------------------------------------------------------------------------------------------------\n\n\u003cimg width=\"1422\" alt=\"plotted graph example\" src=\"https://user-images.githubusercontent.com/13380182/46572293-a8853100-c983-11e8-8537-4b0a77426c19.png\"\u003e\n\n------------------------------------------------------------------------------------------------------------\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitjoy%2Fdependency-graph-osgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famitjoy%2Fdependency-graph-osgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famitjoy%2Fdependency-graph-osgi/lists"}