{"id":28535605,"url":"https://github.com/gerritcodereview/executablewar","last_synced_at":"2025-10-07T01:12:30.845Z","repository":{"id":84111629,"uuid":"47751747","full_name":"GerritCodeReview/executablewar","owner":"GerritCodeReview","description":"Support for running code directly from WAR files - (mirror of http://gerrit.googlesource.com/executablewar)","archived":false,"fork":false,"pushed_at":"2023-09-13T19:57:10.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T04:26:12.596Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GerritCodeReview.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2015-12-10T09:32:38.000Z","updated_at":"2015-12-10T09:32:42.000Z","dependencies_parsed_at":"2025-07-18T03:18:25.562Z","dependency_job_id":"c452b332-a078-410a-b0ec-3766200ce9ba","html_url":"https://github.com/GerritCodeReview/executablewar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/GerritCodeReview/executablewar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fexecutablewar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fexecutablewar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fexecutablewar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fexecutablewar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GerritCodeReview","download_url":"https://codeload.github.com/GerritCodeReview/executablewar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerritCodeReview%2Fexecutablewar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278704702,"owners_count":26031426,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-06-09T17:15:59.966Z","updated_at":"2025-10-07T01:12:30.832Z","avatar_url":"https://github.com/GerritCodeReview.png","language":"Java","readme":"executablewar\n=============\n\nThis package can be overlaid into a WAR file to make it executable,\nautomatically loading the WEB-INF/lib directory into the classpath\nand launching a different main class.\n\nAdd the magic block to your Maven pom.xml, setting the value of\n`Executable-War-Package` to the package of your main classes.\n\nWith this magic in place, users can execute your WAR file as\na standard JAR, including the class name on the command line:\n\n====\n  java -jar your.war Action ...\n====\n\nAt runtime the class `${Executable-War-Package}.${Action}` will be\nloaded dynamically from the WEB-INF/lib directory and its static\nmain method will be invoked with all remaining arguments.\n\nFiles under `WEB-INF/` may also be accessed by the built-in actions\n`--ls` (list files) and `--cat` (output content to standard out).\nThis may be useful for user-level documentation to unpack resources\npackaged with the application.  The `WEB-INF`/ prefix is assumed by\nthese actions, and should not be specified on the command line.\n\n\npom.xml magic\n-------------\n\n====\n  \u003cbuild\u003e\n    \u003cplugins\u003e\n      \u003cplugin\u003e\n        \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n        \u003cartifactId\u003emaven-war-plugin\u003c/artifactId\u003e\n        \u003cconfiguration\u003e\n          \u003carchive\u003e\n            \u003cmanifest\u003e\n              \u003cmainClass\u003eExecutableWarMain\u003c/mainClass\u003e\n            \u003c/manifest\u003e\n            \u003cmanifestEntries\u003e\n              \u003cExecutable-War-Package\u003eyour.package.prefix\u003c/Executable-War-Package\u003e\n            \u003c/manifestEntries\u003e\n          \u003c/archive\u003e\n        \u003c/configuration\u003e\n      \u003c/plugin\u003e\n\n      \u003cplugin\u003e\n        \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n        \u003cartifactId\u003emaven-dependency-plugin\u003c/artifactId\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003emake-executable\u003c/id\u003e\n            \u003cphase\u003egenerate-resources\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003eunpack\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n              \u003cartifactItems\u003e\n                \u003cartifactItem\u003e\n                  \u003cgroupId\u003egerrit\u003c/groupId\u003e\n                  \u003cartifactId\u003eexecutablewar\u003c/artifactId\u003e\n                  \u003coverWrite\u003etrue\u003c/overWrite\u003e\n                  \u003coutputDirectory\u003e${project.build.directory}/executablewar\u003c/outputDirectory\u003e\n                  \u003cincludes\u003e**/*.class\u003c/includes\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      \u003cplugin\u003e\n        \u003cartifactId\u003emaven-antrun-plugin\u003c/artifactId\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003efix-output\u003c/id\u003e\n            \u003cphase\u003eprocess-classes\u003c/phase\u003e\n            \u003cconfiguration\u003e\n              \u003ctasks\u003e\n                \u003cproperty name=\"d\" location=\"${basedir}/target/${project.name}-${project.version}\"/\u003e\n\n                \u003ccopy todir=\"${d}\"\u003e\n                  \u003cfileset dir=\"${basedir}/target/executablewar\" includes=\"**/*\"/\u003e\n                \u003c/copy\u003e\n              \u003c/tasks\u003e\n            \u003c/configuration\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003erun\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  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003egerrit\u003c/groupId\u003e\n      \u003cartifactId\u003eexecutablewar\u003c/artifactId\u003e\n      \u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\n      \u003cscope\u003eprovided\u003c/scope\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n====\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerritcodereview%2Fexecutablewar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerritcodereview%2Fexecutablewar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerritcodereview%2Fexecutablewar/lists"}