code: public void sign( SignConfig config, File jarFile, File signedJar )
              throws MojoExecutionException
      {
  
          JarSignerRequest request = config.createSignRequest( jarFile, signedJar );
  
          try
          {
              JavaToolResult result = jarSigner.execute( request );
  
              CommandLineException exception = result.getExecutionException();
              if ( exception != null )
              {
                  throw new MojoExecutionException( "Could not sign jar " + jarFile, exception );
              }
              int exitCode = result.getExitCode();
              if ( exitCode != 0 )
              {
                  throw new MojoExecutionException(
                          "Could not sign jar " + jarFile + ", use -X to have detail of error" );
              }
          }
          catch ( JavaToolException e )
          {
              throw new MojoExecutionException( "Could not find jarSigner", e );
          }
      }
docs: {@inheritDoc}