{"id":14969519,"url":"https://github.com/jwdeveloper/commandsframework","last_synced_at":"2026-01-27T02:05:14.198Z","repository":{"id":256018977,"uuid":"854138825","full_name":"jwdeveloper/CommandsFramework","owner":"jwdeveloper","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-12T13:43:23.000Z","size":159,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T17:13:58.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jwdeveloper.png","metadata":{"files":{"readme":"docs/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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-08T13:34:01.000Z","updated_at":"2024-09-12T18:41:00.000Z","dependencies_parsed_at":"2024-09-14T07:07:03.235Z","dependency_job_id":"6202e349-67a8-48d0-bd0c-d1ede56e855b","html_url":"https://github.com/jwdeveloper/CommandsFramework","commit_stats":{"total_commits":82,"total_committers":1,"mean_commits":82.0,"dds":0.0,"last_synced_commit":"a1c237d4bc37e43c4b7897b9554a9457df54f579"},"previous_names":["jwdeveloper/commandsframework"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwdeveloper%2FCommandsFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwdeveloper%2FCommandsFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwdeveloper%2FCommandsFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwdeveloper%2FCommandsFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwdeveloper","download_url":"https://codeload.github.com/jwdeveloper/CommandsFramework/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238301120,"owners_count":19449393,"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":[],"created_at":"2024-09-24T13:41:58.806Z","updated_at":"2025-10-26T09:30:48.273Z","avatar_url":"https://github.com/jwdeveloper.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 1. Install the dependencies\n\n\u003e Make sure you are installing the latest version!\n\n#### [Check out the current version](https://central.sonatype.com/artifact/io.github.jwdeveloper.spigot.commands/CommandsFramework)\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.jwdeveloper.spigot.commands\u003c/groupId\u003e\n    \u003cartifactId\u003ecommands-framework-core\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.8\u003c/version\u003e\n    \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\nHow to fix this error?\n\u003cbr\u003e\njava.lang.NoClassDefFoundError: io/github/jwdeveloper/spigot/commands/CommandsFramework\n\u003c/summary\u003e\n\n\nThis is the common error while using the maven dependencies to your plugin.\nThe error means that the dependency classes `has not been included` in the output jar file.\n\n#### Fix it by using the `Maven Shade Plugin`\n\n\u003e Maven shade plugin is a \"script\" that runs during the compilation time and copy all the dependencies\n\u003e classes into the output jar\n\nCopy this into the `pom.xml`\n\n```xml\n\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003emaven-shade-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e3.5.3\u003c/version\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cphase\u003epackage\u003c/phase\u003e\n                    \u003cgoals\u003e\n                        \u003cgoal\u003eshade\u003c/goal\u003e\n                    \u003c/goals\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\nAfter do it, reload the `pom.xml` and compile the project with maven `install` action\n\nThe output jar should be into the folder `/yourproject/target`\n\u003c/details\u003e\n\n____\n\n#### 2. Create a command\n\nThere are three different ways of registering commands\n\n- [Builder](#builder) - default way of creating commands it has the most features\n- [Pattern](#pattern) - simpler way of creating command, create them as string `/hello \u003carg1:Text\u003e \u003carg2:Number\u003e`\n- [Annotations](#annotations) - the simplest way, it uses `Annotations` over methods to register new command\n\n## Builder\n\n`Builder` - The essential approach of a command registration.\nA command is created by using chained fluent builder.\nIt gives you access to all the properties and features.\n\n\u003e The name `builder` comes from the design pattern [Builder](https://refactoring.guru/design-patterns/builder)\n\n[filename](code/basic-builder.md ':include')\n\n## Pattern\n\n`Pattern` - The pattern is higher abstraction. It parses string\npattern into a builder, that can be later adjusted.\n\n[filename](code/basic-pattern.md ':include')\n\n## Annotations\n\n`Annotations` - The highest abstraction, very simple to use. By using the `@FCommand` over\nmethods or class you can simply create new command\n\n[filename](code/basic-annotations.md ':include')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwdeveloper%2Fcommandsframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwdeveloper%2Fcommandsframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwdeveloper%2Fcommandsframework/lists"}