{"id":26389679,"url":"https://github.com/mstanimirovic/maven-kickstart","last_synced_at":"2026-05-15T08:04:03.668Z","repository":{"id":264237200,"uuid":"892786491","full_name":"mstanimirovic/maven-kickstart","owner":"mstanimirovic","description":"Maven config for java applications","archived":false,"fork":false,"pushed_at":"2024-11-22T20:02:59.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T09:29:20.364Z","etag":null,"topics":["build","build-tool","java","kickstart","maven","maven-plugin","project","test","testing"],"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/mstanimirovic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T19:22:08.000Z","updated_at":"2024-11-22T20:03:03.000Z","dependencies_parsed_at":"2024-11-25T15:01:11.287Z","dependency_job_id":null,"html_url":"https://github.com/mstanimirovic/maven-kickstart","commit_stats":null,"previous_names":["m1ad3n/maven-kickstart","mstanimirovic/maven-kickstart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmaven-kickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmaven-kickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmaven-kickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstanimirovic%2Fmaven-kickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mstanimirovic","download_url":"https://codeload.github.com/mstanimirovic/maven-kickstart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244013090,"owners_count":20383703,"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":["build","build-tool","java","kickstart","maven","maven-plugin","project","test","testing"],"created_at":"2025-03-17T09:44:46.152Z","updated_at":"2026-05-15T08:03:58.622Z","avatar_url":"https://github.com/mstanimirovic.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![build badge](https://github.com/m1ad3n/maven-kickstart/actions/workflows/maven.yml/badge.svg)\n# Maven Kickstart\n\nThis is a basic setup for a Java application using Maven. It includes the necessary configuration for:\n\n- Running the application using the exec-maven-plugin\n- Running tests with JUnit 5\n\n### Project Structure\n\nThis project follows a standard Maven directory structure:\n\n```\n.\n├── pom.xml               # Maven configuration file\n└── src\n    ├── main\n    │   └── java          # Java source code\n    └── test\n        └── java          # Test classes\n```\n\n### Maven Configuration\n\nThe pom.xml contains configurations for the following:\n\n##### exec-maven-plugin\n To run the Java application, we use the exec:java plugin. You can execute the application directly from Maven using the following command:\n```\nmvn exec:java\n```\nEnsure that the main class is defined in the pom.xml like this:\n```xml\n\u003cplugin\u003e\n    \u003cgroupId\u003eorg.codehaus.mojo\u003c/groupId\u003e\n    \u003cartifactId\u003eexec-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e3.5.0\u003c/version\u003e\n    \u003cconfiguration\u003e\n        \u003cmainClass\u003ecom.example.Main\u003c/mainClass\u003e \u003c!-- Replace with your main class --\u003e\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\n##### JUnit 5 Configuration\n\nThe project is set up to run tests with JUnit 5. The configuration in pom.xml ensures JUnit 5 is used for testing.\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.junit.jupiter\u003c/groupId\u003e\n        \u003cartifactId\u003ejunit-jupiter\u003c/artifactId\u003e\n        \u003cversion\u003e5.11.3\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\nAdditionally, configure the maven-surefire-plugin to use JUnit 5:\n```xml\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003emaven-surefire-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e3.5.2\u003c/version\u003e\n            \u003cconfiguration\u003e\n                \u003csuiteXmlFiles\u003e\n                    \u003csuiteXmlFile\u003esrc/test/resources/testng.xml\u003c/suiteXmlFile\u003e\n                \u003c/suiteXmlFiles\u003e\n            \u003c/configuration\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n##### Running Tests\n\nTo run your tests with JUnit 5, simply execute:\n```\nmvn test\n```\nThis will run all tests located in src/test/java\n\n### Conclusion\n\nThis setup provides a basic Maven configuration for a Java application with the ability to run the application and tests using Maven goals. You can extend it with more dependencies, plugins, or custom configurations as needed for your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstanimirovic%2Fmaven-kickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmstanimirovic%2Fmaven-kickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstanimirovic%2Fmaven-kickstart/lists"}