{"id":19557819,"url":"https://github.com/jbangdev/jbang-maven-plugin","last_synced_at":"2025-04-26T23:31:31.771Z","repository":{"id":46514662,"uuid":"296404270","full_name":"jbangdev/jbang-maven-plugin","owner":"jbangdev","description":"Maven Plugin for running and downloading jbang","archived":false,"fork":false,"pushed_at":"2025-03-26T13:43:41.000Z","size":83,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T12:09:43.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbangdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-09-17T18:03:12.000Z","updated_at":"2025-04-09T10:16:52.000Z","dependencies_parsed_at":"2023-12-23T12:11:10.314Z","dependency_job_id":"c99b941c-7239-49f4-98ae-ffbaeb057550","html_url":"https://github.com/jbangdev/jbang-maven-plugin","commit_stats":{"total_commits":64,"total_committers":8,"mean_commits":8.0,"dds":0.453125,"last_synced_commit":"a875cf1ce74ff8988f47e5b5b0f6d5c71166405b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbangdev%2Fjbang-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbangdev","download_url":"https://codeload.github.com/jbangdev/jbang-maven-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250449697,"owners_count":21432514,"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-11-11T04:44:06.615Z","updated_at":"2025-04-26T23:31:31.764Z","avatar_url":"https://github.com/jbangdev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JBang Maven Plugin \n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/jbangdev/jbang-maven-plugin/ci.yml?style=for-the-badge)\n[![Maven Central](https://img.shields.io/maven-central/v/dev.jbang/jbang-maven-plugin.svg?label=Maven-Central\u0026style=for-the-badge)](https://search.maven.org/search?q=g:%22dev.jbang%22%20AND%20a:%22jbang-maven-plugin%22)\n\nThe JBang Maven plugin allows JBang scripts to be executed during a Maven build, or through `mvn` command-line (without pom file).\n\nThe plugin attempts to use an existing JBang installation. If no JBang installation is found, the plugin will install JBang by downloading and caching the latest version binaries (by default in your Maven project directory) for subsequent runs. \n\n### Arguments\n\n- `script`: The script to be executed by JBang\n\n#### Example \n\nFrom inside a Maven buid:\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cscript\u003ehello.java\u003c/script\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n\nOr with command-line `$ mvn dev.jbang:jbang-maven-plugin:0.0.8:run -Djbang.script=\"helloworld/helloworld.java\"`.\n    \n- `args` : The arguments to be used in the JBang script (if any)\n\n#### Example \n\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cscript\u003ehello.java\u003c/script\u003e\n                \u003cargs\u003e\n                  \u003carg\u003e--option1=foo\u003c/arg\u003e\n                \u003c/args\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n\n- `trusts`: If the script resides in a remote location, this parameter specifies what URLs should be trusted. See [URLs from Trusted Sources](https://github.com/jbangdev/jbang#urls-from-trusted-sources) for more information\n\n\n#### Example \n\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cscript\u003ehttps://github.com/jbangdev/jbang-examples/blob/master/examples/lang.java\u003c/script\u003e\n                \u003ctrusts\u003e\n                  \u003ctrust\u003ehttps://github.com\u003c/trust\u003e\n                \u003c/trusts\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n\n- `jbangargs`: Arguments for `jbang` (not the script)\n\n#### Example\n\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cjbangargs\u003e\n                     \u003cjbangarg\u003e--quiet\u003c/jbangarg\u003e\n                \u003c/jbangargs\u003e\n                \u003cscript\u003ehello.java\u003c/script\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n                            \n- `jbangVersion`: If your envronment lacks the JBang binaries in the PATH, you can specify the JBang version to be installed. If not specified, the plugin will resolve to the latest JBang release available\n\n\n#### Example \n\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cscript\u003ehello.java\u003c/script\u003e\n                \u003cjbangVersion\u003e0.47.1\u003c/jbangVersion\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n\n- `jbangInstallDir`: Alternative location of JBang installation. The default value is `${project.basedir}`\n\n\n#### Example\n\n```xml\n      \u003cplugin\u003e\n        \u003cgroupId\u003edev.jbang\u003c/groupId\u003e\n        \u003cartifactId\u003ejbang-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.7\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003erun\u003c/id\u003e\n            \u003cphase\u003eprocess-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cscript\u003ehello.java\u003c/script\u003e\n                \u003cjbangInstallDir\u003e${project.build.directory}\u003c/jbangInstallDir\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n```\n\n### Reporting bugs/issues/features\n\nPlease use https://github.com/jbangdev/jbang for reporting bugs/issues/features. \n\n### Releasing\n\nTo release a new version of the plugin, run the following command:\n\n```shell\nmvn versions:set -DnewVersion=0.0.Z\ngit commit -a -m \"release 0.0.Z\"\ngit tag -a 0.0.Z -m \"release 0.0.Z\"\ngit push\n```\n\nWhen completed correctly, the new version will be available in Maven Central within some time (usually less than 30 minutes).\n\nTo prepare for the next development iteration, run the following command:\n\n```shell```\nmvn versions:set -DnewVersion=0.0.Z+1-SNAPSHOT\ngit commit -a -m \"prepare for next development iteration\"\ngit push\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbangdev%2Fjbang-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbangdev%2Fjbang-maven-plugin/lists"}