code: @Override
      public void execute() throws MojoExecutionException {
          try {
              // Work around for Application Insights Java SDK:
              // Sometimes, NoClassDefFoundError will be thrown even after Maven build is completed successfully.
              // An issue has been filed at https://github.com/Microsoft/ApplicationInsights-Java/issues/416
              // Before this issue is fixed, set default uncaught exception handler for all threads as work around.
              Thread.setDefaultUncaughtExceptionHandler(new DefaultUncaughtExceptionHandler());
  
              final Properties prop = new Properties();
              if (isFirstRun(prop)) {
                  infoWithMultipleLines(PRIVACY_STATEMENT);
                  updateConfigurationFile(prop);
              }
  
              if (isSkipMojo()) {
                  info("Skip execution.");
                  trackMojoSkip();
              } else {
                  trackMojoStart();
  
                  doExecute();
  
                  trackMojoSuccess();
              }
          } catch (Exception e) {
              handleException(e);
          } finally {
              // When maven goal executes too quick, The HTTPClient of AI SDK may not fully initialized and will step
              // into endless loop when close, we need to call it in main thread.
              // Refer here for detail codes: https://github.com/Microsoft/ApplicationInsights-Java/blob/master/core/src
              // /main/java/com/microsoft/applicationinsights/internal/channel/common/ApacheSender43.java#L103
              try {
                  // Sleep to wait ai sdk flush telemetries
                  Thread.sleep(2 * 1000);
              } catch (InterruptedException e) {
                  // swallow this exception
              }
              ApacheSenderFactory.INSTANCE.create().close();
          }
      }
docs: region Entry Point