{"id":37017211,"url":"https://github.com/souzen/light-jpf","last_synced_at":"2026-01-14T01:58:21.199Z","repository":{"id":57722909,"uuid":"86180645","full_name":"souzen/light-jpf","owner":"souzen","description":"Lightweight Java Plugin Framework","archived":false,"fork":false,"pushed_at":"2018-01-03T23:05:14.000Z","size":144,"stargazers_count":19,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-12T01:51:34.610Z","etag":null,"topics":["classloader","java","maven","maven-plugin","pluginframework","plugins"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/souzen.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-25T18:45:24.000Z","updated_at":"2024-03-31T14:19:16.000Z","dependencies_parsed_at":"2022-08-25T09:22:03.739Z","dependency_job_id":null,"html_url":"https://github.com/souzen/light-jpf","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/souzen/light-jpf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzen%2Flight-jpf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzen%2Flight-jpf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzen%2Flight-jpf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzen%2Flight-jpf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souzen","download_url":"https://codeload.github.com/souzen/light-jpf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzen%2Flight-jpf/sbom","scorecard":{"id":839589,"data":{"date":"2025-08-11","repo":{"name":"github.com/souzen/light-jpf","commit":"1cf4348ad7566b599c6efe885114c110755f5ec6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6phf-73q6-gh87","Warn: Project is vulnerable to: GHSA-wxr5-93ph-8wr9","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-6pcc-3rfx-4gpm","Warn: Project is vulnerable to: GHSA-hwj3-m3p6-hj38","Warn: Project is vulnerable to: GHSA-4g9r-vxhx-9pgx","Warn: Project is vulnerable to: GHSA-7hfm-57qf-j43q","Warn: Project is vulnerable to: GHSA-crv7-7245-f45f","Warn: Project is vulnerable to: GHSA-h436-432x-8fvx","Warn: Project is vulnerable to: GHSA-hrmr-f5m6-m9pq","Warn: Project is vulnerable to: GHSA-mc84-pj99-q6hh","Warn: Project is vulnerable to: GHSA-xqfj-vm6h-2x34","Warn: Project is vulnerable to: GHSA-2x83-r56g-cv47","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj","Warn: Project is vulnerable to: GHSA-cfh5-3ghh-wfjx","Warn: Project is vulnerable to: GHSA-fmj5-wv96-r2ch","Warn: Project is vulnerable to: GHSA-gw85-4gmf-m7rh","Warn: Project is vulnerable to: GHSA-rhgr-952r-6p8q","Warn: Project is vulnerable to: GHSA-2f88-5hg8-9x2x","Warn: Project is vulnerable to: GHSA-5ggr-mpgw-3mgx","Warn: Project is vulnerable to: GHSA-7jw3-5q4w-89qg","Warn: Project is vulnerable to: GHSA-9848-v244-962p","Warn: Project is vulnerable to: GHSA-cvvx-r33m-v7pq","Warn: Project is vulnerable to: GHSA-59j4-wjwp-mw9m","Warn: Project is vulnerable to: GHSA-fh63-4r66-jc7v","Warn: Project is vulnerable to: GHSA-hcxq-x77q-3469","Warn: Project is vulnerable to: GHSA-wh3p-fphp-9h2m","Warn: Project is vulnerable to: GHSA-8wh2-6qhj-h7j9","Warn: Project is vulnerable to: GHSA-334p-wv2m-w3vp","Warn: Project is vulnerable to: GHSA-7j4h-8wpf-rqfh","Warn: Project is vulnerable to: GHSA-h65f-jvqw-m9fj","Warn: Project is vulnerable to: GHSA-vmqm-g3vh-847m","Warn: Project is vulnerable to: GHSA-w4jq-qh47-hvjq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T20:08:03.553Z","repository_id":57722909,"created_at":"2025-08-23T20:08:03.554Z","updated_at":"2025-08-23T20:08:03.554Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"ssl_error","status_checked_at":"2026-01-14T01:40:32.775Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["classloader","java","maven","maven-plugin","pluginframework","plugins"],"created_at":"2026-01-14T01:58:20.740Z","updated_at":"2026-01-14T01:58:21.192Z","avatar_url":"https://github.com/souzen.png","language":"Java","readme":"# Lightweight Java Plugin Framework\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.souzen/light-jpf.svg)](http://search.maven.org/#search|ga|1|light-jpf)\n[![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://travis-ci.org/souzen/light-jpf)\n\n\n\n## 1. Features\n- Simple api\n- Sandboxing with custom java classloader\n- Build plugins with maven\n\n\n\n## 2. Usage\n\n#### 2.1 Create plugin\n\nCreate Plugin class that implements ljpf.Plugin interface.\n\n```java\npublic class CustomPlugin implements Plugin {\n\n    @Override\n    public void load() {\n        ...\n    }\n\n    @Override\n    public void unload() {\n        ...\n    }\n}\n```\n\nCreate descriptor file for corresponding plugin and place it in project resources.\nDescriptor file must have .plugin extension.\n\nsrc/main/resources/custom.plugin\n\n```properties\nid=CustomPluginId\nversion=0.0.1\npluginClass=ljpf.examples.plugin.CustomPlugin\ndescription=My Custom plugin\n```\n\n#### 2.2 Create app\n\nLoad plugins in your main application using PluginManager interface. Use plugin id from descriptor file to load extensions.\nPlugin repository determines way of loading plugins. Base case is to load jars from classpath plugins/ directory.\n\n\n```java\npublic class App {\n\n    public static void main(String[] args) {\n\n        PluginRepository pluginRepository = new DirPluginRepository(\"plugins\");\n        PluginManager pluginManager = new DefaultPluginManager(pluginRepository);\n\n        pluginManager.load(\"CustomPluginId\");\n    }\n\n}\n```\n\n#### 2.3 Build with Maven\n\n#### Build plugin with Maven\n\nUse light-jpf-maven-plugin to create maven artifact (*-plugin.jar).\nMaven will create fat jar with plugin code and all its dependencies. \n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003ecom.github.souzen\u003c/groupId\u003e\n                \u003cartifactId\u003elight-jpf-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e0.0.2\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cphase\u003epackage\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003emake-plugin\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n        ....    \n    \n    \u003c/build\u003e\n```\n\n#### Add plugins to app\n\nlight-jpf-maven-plugin can also prepare plugins/ directory in your application.\n\n```xml\n    \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003ecom.github.souzen\u003c/groupId\u003e\n                \u003cartifactId\u003elight-jpf-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e0.0.2\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cphase\u003eprocess-sources\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003emake-plugin-repository\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003coutputDirectory\u003e${project.build.directory}/plugins\u003c/outputDirectory\u003e\n                            \u003cartifactItems\u003e\n                                \u003cartifactItem\u003e\n                                    \u003cgroupId\u003eljpf.examples.plugin\u003c/groupId\u003e\n                                    \u003cartifactId\u003ecustom-plugin\u003c/artifactId\u003e\n                                    \u003cversion\u003e0.0.1\u003c/version\u003e\n                                \u003c/artifactItem\u003e\n                            \u003c/artifactItems\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n            ... \n               \n        \u003c/plugins\u003e\n        ....    \n    \n    \u003c/build\u003e\n```\n\n\n\n## 3. Plugin Repositories\n\n#### DirPluginRepository\nTODO Loads plugins from given directory\n\n#### ClasspathPluginRepository\nTODO Loads plugins from java classpath\n\n#### MultiPluginRepository\nTODO Enables mixing multiple plugin reposiotories\n\n\n\n## 4. Debugging\nIn app create plugins dir and run or place plugins as dependencies\n\n```xml\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eljpf.examples.plugin\u003c/groupId\u003e\n            \u003cartifactId\u003ecustom-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e0.0.1\u003c/version\u003e\n        \u003c/dependency\u003e\n        ...\n        \n    \u003c/dependencies\u003e\n```\n\n\n\n## 5. Examples\nSee example project [here](https://github.com/souzen/light-jpf/tree/master/examples)\n\nBuild and run example\n\n```\nmvn clean package\nunzip examples/app/target/app-0.0.3-SNAPSHOT-bin.zip\n./app-0.0.3-SNAPSHOT/start.bat\n```\n\n\n## 6. Licence\nCopyright 2017 Luke Sosnicki\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouzen%2Flight-jpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouzen%2Flight-jpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouzen%2Flight-jpf/lists"}