{"id":18026778,"url":"https://github.com/yegor256/jping-maven-plugin","last_synced_at":"2025-03-27T01:31:24.293Z","repository":{"id":238811058,"uuid":"797492835","full_name":"yegor256/jping-maven-plugin","owner":"yegor256","description":"Maven plugin that checks whether the host machine is connected to the Internet or not","archived":false,"fork":false,"pushed_at":"2024-10-21T16:50:11.000Z","size":422,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-22T05:51:16.655Z","etag":null,"topics":["java","maven-plugin","online-status"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"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/yegor256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-05-08T00:19:49.000Z","updated_at":"2024-10-04T10:56:30.000Z","dependencies_parsed_at":"2024-06-20T05:17:18.616Z","dependency_job_id":"c490dacd-eaa0-4ee1-9480-29fc05ee82d1","html_url":"https://github.com/yegor256/jping-maven-plugin","commit_stats":null,"previous_names":["yegor256/jping-maven-plugin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjping-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjping-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjping-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fjping-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/jping-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245764701,"owners_count":20668462,"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":["java","maven-plugin","online-status"],"created_at":"2024-10-30T08:08:00.129Z","updated_at":"2025-03-27T01:31:24.276Z","avatar_url":"https://github.com/yegor256.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# It checks whether the machine is online\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/jping-maven-plugin)](http://www.rultor.com/p/yegor256/jping-maven-plugin)\n\n[![mvn](https://github.com/yegor256/jping-maven-plugin/actions/workflows/mvn.yml/badge.svg)](https://github.com/yegor256/jping-maven-plugin/actions/workflows/mvn.yml)\n[![PDD status](http://www.0pdd.com/svg?name=yegor256/jping-maven-plugin)](http://www.0pdd.com/p?name=yegor256/jping-maven-plugin)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.yegor256/jping-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.yegor256/jping-maven-plugin)\n[![Javadoc](https://javadoc.io/badge/com.yegor256/jping-maven-plugin.svg)](http://www.javadoc.io/doc/com.yegor256/jping-maven-plugin)\n[![codecov](https://codecov.io/gh/yegor256/jping-maven-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/yegor256/jping-maven-plugin)\n\nAdd it to your `pom.xml`:\n\n```xml\n\u003cproject\u003e\n  \u003cbuild\u003e\n    \u003cplugins\u003e\n      \u003cplugin\u003e\n        \u003cgroupId\u003ecom.yegor256\u003c/groupId\u003e\n        \u003cartifactId\u003ejping-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.0.2\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003ejping\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n              \u003cfileName\u003e${project.build.directory}/we-are-online.txt\u003c/fileName\u003e\n              \u003cpropertyName\u003ewe-are-online\u003c/propertyName\u003e\n              \u003cpropertyValue\u003etrue\u003c/propertyValue\u003e\n              \u003cfailWhenOffline\u003efalse\u003c/failWhenOffline\u003e\n              \u003curl\u003ehttps://www.google.com\u003c/url\u003e\n              \u003cconnectTimeout\u003e1000\u003c/connectTimeout\u003e\n              \u003creadTimeout\u003e1000\u003c/readTimeout\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\u003c/project\u003e\n```\n\nIt runs, by default, at the `initialize` phase and checks whether\nthe machine is connected to the Internet or not (by making a test\nHTTP connection to the `url` specified). If the connection is alive,\nthe value of the `we-are-online` property will be set to `true`.\nOtherwise, the property will not be set.\n\nAlso, if the machine is connected to the Internet, a file will be\ncreated, as specified in the `fileName` configuration parameter. If\nthe machine is offline, the file will be deleted (if it exists).\n\n## How to contribute?\n\nFork the repository, make changes, submit a pull request.\nWe promise to review your changes same day and apply to\nthe `master` branch, if they look correct.\n\nPlease run Maven build before submitting a pull request:\n\n```\n$ mvn clean install -Pqulice\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjping-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fjping-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fjping-maven-plugin/lists"}