{"id":20509329,"url":"https://github.com/raydac/mvn-finisher","last_synced_at":"2026-02-26T21:03:41.225Z","repository":{"id":57725161,"uuid":"211665705","full_name":"raydac/mvn-finisher","owner":"raydac","description":"Maven extension to call finishing tasks after session processing","archived":false,"fork":false,"pushed_at":"2021-05-16T12:00:20.000Z","size":323,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T01:08:52.775Z","etag":null,"topics":["maven","maven-extension"],"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/raydac.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-29T13:17:02.000Z","updated_at":"2024-01-18T17:50:07.000Z","dependencies_parsed_at":"2022-09-11T20:21:09.173Z","dependency_job_id":null,"html_url":"https://github.com/raydac/mvn-finisher","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/raydac/mvn-finisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydac%2Fmvn-finisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydac%2Fmvn-finisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydac%2Fmvn-finisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydac%2Fmvn-finisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raydac","download_url":"https://codeload.github.com/raydac/mvn-finisher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydac%2Fmvn-finisher/sbom","scorecard":{"id":763463,"data":{"date":"2025-08-11","repo":{"name":"github.com/raydac/mvn-finisher","commit":"96506aa11b0e5b0e4090fa21783c562621f524bd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-mvr2-9pj6-7w5j","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-rhgr-952r-6p8q","Warn: Project is vulnerable to: GHSA-2f88-5hg8-9x2x","Warn: Project is vulnerable to: GHSA-g6ph-x5wf-g337","Warn: Project is vulnerable to: GHSA-jcwr-x25h-x5fh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T00:04:51.182Z","repository_id":57725161,"created_at":"2025-08-23T00:04:51.182Z","updated_at":"2025-08-23T00:04:51.182Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29872674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:01:59.805Z","status":"ssl_error","status_checked_at":"2026-02-26T21:00:42.555Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["maven","maven-extension"],"created_at":"2024-11-15T20:24:02.961Z","updated_at":"2026-02-26T21:03:41.202Z","avatar_url":"https://github.com/raydac.png","language":"Java","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AHWJHJFBAWGL2"],"categories":[],"sub_categories":[],"readme":"[![License Apache 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Java 8.0+](https://img.shields.io/badge/java-8.0%2b-green.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)\n[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/mvn-finisher-extension/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|mvn-finisher-extension|1.1.1|jar)\n[![Maven 3.3.1+](https://img.shields.io/badge/maven-3.3.1%2b-green.svg)](https://maven.apache.org/)\n[![PayPal donation](https://img.shields.io/badge/donation-PayPal-cyan.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=AHWJHJFBAWGL2)\n[![YooMoney donation](https://img.shields.io/badge/donation-Yoo.money-blue.svg)](https://yoomoney.ru/to/41001158080699)\n\n![banner](assets/banner.png)\n\n# Changelog\n\n__1.1.1 (08-feb-2020)__\n - added property for finish task timeout `mvn.finisher.task.timeout` in seconds, by default 120 seconds\n - added property to skip execution `mvn.finisher.skip`\n - added properties `mvn.finisher.log.save` and `mvn,finisher.log.folder` to save finish task log\n - minor improvements and bug fixing\n\n__1.1.0 (02-feb-2020)__\n - finish tasks started as external processes\n\n__1.0.1 (31-jan-2020)__\n - added catch of JVM shutdown, its phase __finish-force__\n \n__1.0.0 (29-sep-2019)__\n - initial release\n\n# What is it\nSmall [maven](https://maven.apache.org/) extesion adds three new phases into build process:\n - __finish__ is called in any case if session is started (also called in JVM shutdown)\n - __finish-ok__ is called only if session is built without errors (called in JVM shutdown only if session build completed)\n - __finish-error__ is called only if session is built with errors (called in JVM shutdown only if session buuld completed)\n - __finish-force__ is called only if JVM shutdown (press CTRL+C for instance)\n \n It's behavior very similar to well-known `try...catch...finally` mechanism where __finish-error__ situated in the `catch` section and __finish__ situated in the `finally` section, __finish-ok__ will be called as the last ones in the body.\n\n# How to add in a project?\n Just add extension into the build extensions section\n```xml\n\u003cbuild\u003e\n    \u003cextensions\u003e\n        \u003cextension\u003e\n            \u003cgroupId\u003ecom.igormaznitsa\u003c/groupId\u003e\n                \u003cartifactId\u003emvn-finisher-extension\u003c/artifactId\u003e\n                \u003cversion\u003e1.1.1\u003c/version\u003e\n        \u003c/extension\u003e\n    \u003c/extensions\u003e\n\u003c/build\u003e\n```\nafter end of session build, the extenstion finds finishing tasks in all session projects, for instance task to print some message into console:\n```xml\n\u003cplugin\u003e\n    \u003cgroupId\u003ecom.github.ekryd.echo-maven-plugin\u003c/groupId\u003e\n    \u003cartifactId\u003eecho-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n    \u003cexecutions\u003e\n        \u003cexecution\u003e\n            \u003cid\u003eprint-echo\u003c/id\u003e\n            \u003cphase\u003efinish\u003c/phase\u003e\n            \u003cgoals\u003e\n                \u003cgoal\u003eecho\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n                \u003cmessage\u003eHello World from finishing task\u003c/message\u003e\n            \u003c/configuration\u003e\n        \u003c/execution\u003e\n    \u003c/executions\u003e\n\u003c/plugin\u003e\n```\nin the code snippet above, there is `print-echo` task to be executed during finish phase. If the maven build process was interrupted then `force finish` is activated.   \nSince 1.1.0 all finishing tasks are executed as __external__ processes through call of maven.\n\nIf defined several finishing tasks then they will be sorted in such manner:\n- list of projects in order provided in maven session project list\n- only projects with provided build status will be processed \n- if any error in session build then execution order is:\n  - __finish-error__\n  - __finish__\n- if session build is ok then execution order is:\n  - __finish-ok__\n  - __finish__\n- if session canceled (for instance by CTRL+C) then execution order is:\n  - __finish-force__\n  - __finish__\n  \n__Each detected task is called separately in its own maven request so that all them will be executed even if some of them can be error.__\n\n# Extension properties\n\n## mvn.finisher.skip\n\nIt is a boolean property and can be either `true` or `false`. By default it is `false`. If it is `true` then execution of the extension will be skipped.\n\n## mvn.finisher.log.save\n\nFlag to save log of finishing tasks as text files with name pattern `artifactId_finishTaskId.log`. By default is `false`.\n\n## mvn.finisher.log.folder\n\nFolder to save log files. By defaul it is `mvn.finisher.logs` in the project build folder.  \n\n## mvn.finisher.task.timeout\n\nIt allows to define finish task timeout __in seconds__. By default it is 120 seconds.\n\n# Example\nBelow you can see some example of extension use. The example starts some docker image and then stop and remove it in finishing tasks.\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cproject xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://maven.apache.org/POM/4.0.0\"\n         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\"\u003e\n    \u003cmodelVersion\u003e4.0.0\u003c/modelVersion\u003e\n\n    \u003cgroupId\u003ecom.igormaznitsa\u003c/groupId\u003e\n    \u003cartifactId\u003emvn-finisher-test-docker\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.0-SNAPSHOT\u003c/version\u003e\n\n    \u003cpackaging\u003ejar\u003c/packaging\u003e\n\n    \u003cbuild\u003e\n        \u003cextensions\u003e\n            \u003cextension\u003e\n                \u003cgroupId\u003ecom.igormaznitsa\u003c/groupId\u003e\n                \u003cartifactId\u003emvn-finisher-extension\u003c/artifactId\u003e\n                \u003cversion\u003e1.1.1\u003c/version\u003e\n            \u003c/extension\u003e\n        \u003c/extensions\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003eio.fabric8\u003c/groupId\u003e\n                \u003cartifactId\u003edocker-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e0.31.0\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cid\u003estart-docker-container\u003c/id\u003e\n                        \u003cphase\u003evalidate\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003estart\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003ccontainerNamePattern\u003etest-container-finisher\u003c/containerNamePattern\u003e\n                            \u003cshowLogs\u003etrue\u003c/showLogs\u003e\n                            \u003cimages\u003e\n                                \u003cimage\u003e\n                                    \u003cname\u003edocker.bintray.io/jfrog/artifactory-oss:latest\u003c/name\u003e\n                                    \u003crun\u003e\n                                        \u003cwait\u003e\n                                            \u003ctime\u003e60000\u003c/time\u003e\n                                            \u003clog\u003e#+\\s*Artifactory successfully started \\([0-9.]+ seconds\\)\\s*#+\u003c/log\u003e\n                                        \u003c/wait\u003e\n                                    \u003c/run\u003e\n                                \u003c/image\u003e\n                            \u003c/images\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                    \u003cexecution\u003e\n                        \u003cid\u003estop-docker-container\u003c/id\u003e\n                        \u003cphase\u003efinish\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003estop\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003cstopNamePattern\u003etest-container-finisher\u003c/stopNamePattern\u003e\n                            \u003callContainers\u003etrue\u003c/allContainers\u003e\n                            \u003cremoveVolumes\u003etrue\u003c/removeVolumes\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                    \u003cexecution\u003e\n                        \u003cid\u003eremove-docker-container\u003c/id\u003e\n                        \u003cphase\u003efinish\u003c/phase\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003eremove\u003c/goal\u003e\n                        \u003c/goals\u003e\n                        \u003cconfiguration\u003e\n                            \u003cremoveMode\u003erun\u003c/removeMode\u003e\n                            \u003cremoveNamePattern\u003etest-container-finisher\u003c/removeNamePattern\u003e\n                        \u003c/configuration\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n\n\u003c/project\u003e\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraydac%2Fmvn-finisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraydac%2Fmvn-finisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraydac%2Fmvn-finisher/lists"}