• 0.0.2

jping:jping

Full name:

com.yegor256:jping-maven-plugin:0.0.2:jping

Description:

Checks whether the host machine is connected to the Internet.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 0.0.1.
  • Binds by default to the lifecycle phase: initialize.

Optional Parameters

Name Type Since Description
<connectTimeout> int - Timeout to make a connection (in milliseconds).
Default: 4000
<failWhenOffline> boolean - Fail the build if there is no Internet connection?
Default: false
<fileName> File - File to create.
Default: ${project.build.directory}/jping.txt
<propertyName> String - Property name to set.
Default: we-are-online
<propertyValue> String - Property value to set.
Default: true
<readTimeout> int - Read to make a connection (in milliseconds).
Default: 4000
<url> String - The URL to ping.
Default: https://www.google.com

Parameter Details

<connectTimeout>

Timeout to make a connection (in milliseconds).
  • Type: int
  • Required: report.plugin.goal.no
  • Default: 4000

<failWhenOffline>

Fail the build if there is no Internet connection?
  • Type: boolean
  • Required: report.plugin.goal.no
  • Default: false

<fileName>

File to create.
  • Type: java.io.File
  • Required: report.plugin.goal.no
  • Default: ${project.build.directory}/jping.txt

<propertyName>

Property name to set.
  • Type: java.lang.String
  • Required: report.plugin.goal.no
  • Default: we-are-online

<propertyValue>

Property value to set.
  • Type: java.lang.String
  • Required: report.plugin.goal.no
  • Default: true

<readTimeout>

Read to make a connection (in milliseconds).
  • Type: int
  • Required: report.plugin.goal.no
  • Default: 4000

<url>

The URL to ping.
  • Type: java.lang.String
  • Required: report.plugin.goal.no
  • Default: https://www.google.com