code: @Override
      public void execute() throws MojoExecutionException {
          if (StringUtils.isBlank(this.refreshPort)) {
              this.refreshPort = "8080";
          }
  
          // Do a ping to see if the server is up, if not, log and just exit
          if (!ping()) {
              getLog().warn("Connection failed to " + this.refreshHost + ":" + this.refreshPort + ", " + getAbortedMsg());
              return;
          }
  
          executeRefresh();
      }
docs: Mojo interface implementation