{"id":20206265,"url":"https://github.com/c0stra/maven-standalone-runner","last_synced_at":"2026-05-30T20:31:21.702Z","repository":{"id":96130556,"uuid":"423247615","full_name":"c0stra/maven-standalone-runner","owner":"c0stra","description":"Standalone maven plugin to run maven projects directly from repo jars.","archived":false,"fork":false,"pushed_at":"2021-12-02T19:45:14.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T05:59:23.405Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c0stra.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}},"created_at":"2021-10-31T19:58:01.000Z","updated_at":"2021-12-02T19:45:17.000Z","dependencies_parsed_at":"2023-06-16T20:16:14.986Z","dependency_job_id":null,"html_url":"https://github.com/c0stra/maven-standalone-runner","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/c0stra/maven-standalone-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0stra%2Fmaven-standalone-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0stra%2Fmaven-standalone-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0stra%2Fmaven-standalone-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0stra%2Fmaven-standalone-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0stra","download_url":"https://codeload.github.com/c0stra/maven-standalone-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0stra%2Fmaven-standalone-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33709269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":"2024-11-14T05:22:36.359Z","updated_at":"2026-05-30T20:31:21.683Z","avatar_url":"https://github.com/c0stra.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e _\" ... No pom.xml, no sources, no compilation ..._\n\u003e\n\u003e _... Just grab jars from nexus, and run! \"_\n\n# Maven standalone runner\n\n![Released version](https://img.shields.io/maven-central/v/foundation.fluent.api/run.svg)\n\nMaven is used heavily for java project management with main support for\ndevelopment, unit testing and deployment automation.\n\nBut maven infrastructure is very powerful, as it has unified repositories\nof artifacts (e.g. jars), and `pom.xml` files describing dependencies in\nan abstract way, and provides a mechanism of transforming the abstract\ncoordinates into jars (download to local repository) and automatic dependency\nresolution.\n\nThis maven plugin - __maven standalone runner__ is shifting it's capabilities\ntowards running the java packages, using the power and user simplicity of maven.\n\nGiven a maven project with main class defined in the jar manifest, you can run it as simple as:\n\n```shell\nmvn foundation.fluent.api:run:main -Dartifact=foundation.fluent.api:sample-main-artifact:1.0\n```\n\nThe plugin will take care of resolving the provided artifact and all it's dependencies,\nand running it's main class.\n\nFor all possibilities, see description of it's individual goals.\n\n## Goal: `main`\nThis goal serves for execution of any main class either explicitly provided\nvia property, or defined in the manifest.\n\n### Example\n```shell\nmvn foundation.fluent.api:run:main -Dartifact=foundation.fluent.api:sample-main-artifact:1.0\n```\n\n### Parameters\n| Parameter | Description | Example |\n|-------|---------|------|\n| `artifact` | Main artifact coordinates | `-Dartifact=com.example:exampleArtifactId:version` |\n| `mainClass` | Explicitly provided main class. It may not be needed, if the main class is defined in jar manifest. | `-DmainClass=com.example.Main` |\n| `args` | Optional main method arguments (a.k.a command line arguments). | `\"-Dargs=A B\"`  |\n| `argFile` | Optional file with main method arguments, one per line. | `-DargFile=args.txt` |\n| `allowSnapshot` | Allow snapshot artifact to be used. By default it is not allowed. | `-DallowSnapshot=true` |\n\n## Goal: `class-path`\nThis goal simply resolves (and downloads) all dependencies, and only constructs a classpath in the format for\ngiven platform.\n\n### Good to note\nE.g. __Spring boot__ applications are often having entry point main class, so it's very simple to use this\nplugin to run spring boot application.\n\n### Example\n```shell\nmvn foundation.fluent.api:run:class-path -Dartifact=foundation.fluent.api:sample-main-artifact:1.0\n```\n\n### Parameters\n| Parameter | Description | Example |\n|-------|---------|------|\n| `artifact` | Main artifact coordinates | `-Dartifact=com.example:exampleArtifactId:version` |\n| `allowSnapshot` | Allow snapshot artifact to be used. By default it is not allowed. | `-DallowSnapshot=true` |\n\n## Goal: `testng`\nThis goal simplifies invocation of TestNG tests directly from jar.\n\nThis may be often used in higher level (non-unit) test automation, where tests are not unit\ntests of the code within the same maven module, but tests are extra delivery,\nexecuted against external SUT (system under test), maybe installed and brought up automatically too,\nor prepared in dedicated test environment.\n\n| Parameter | Description | Example |\n|-------|---------|------|\n| `artifact` | Main artifact coordinates | `-Dartifact=com.example:exampleArtifactId:version` |\n| `args` | Optional main method arguments (a.k.a command line arguments). | `\"-Dargs=A B\"`  |\n| `argFile` | Optional file with main method arguments, one per line. | `-DargFile=args.txt` |\n| `allowSnapshot` | Allow snapshot artifact to be used. By default it is not allowed. | `-DallowSnapshot=true` |\n\n### Parameter handling\nTestNG goal's objective is to simplify the execution.\nBy default, the main artifact's jar is used as `-testjar` TestNG parameter, so tests or default testNG suite (`testng.xml`)\nare taken from that jar.\nHowever via `-Dargs` parameter, one can override this, and specify different jar to be a test jar.\nThat argument can be also translated from artifact coordinates (abstract representation) to it's corresponding (resolved)\nspecific jar file.\n\nMore on TestNG command-line parameters can be found int TestNG documentation:\nhttps://testng.org/doc/documentation-main.html#running-testng\n\n## Plan\nThe plan is to provide few additional goals.\n1. Support for \"preparing\" (a.k.a. installing) of the artifact for pure local execution. That should use the `class-path` capability, and prepare startup script.\n2. Support for convenient additional common frameworks. E.g. JUnit5.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0stra%2Fmaven-standalone-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0stra%2Fmaven-standalone-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0stra%2Fmaven-standalone-runner/lists"}