Class SonarQualityGatesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="inspect")
    public class SonarQualityGatesMojo
    extends org.apache.maven.plugin.AbstractMojo
    The Class SonarQualityGatesMojo.
    • Constructor Detail

      • SonarQualityGatesMojo

        @Inject
        public SonarQualityGatesMojo()
        Instantiates a new sonar quality gates mojo.
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Execute.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - the mojo execution exception
        org.apache.maven.plugin.MojoFailureException - the mojo failure exception
      • addCredentials

        protected void addCredentials​(com.mashape.unirest.request.HttpRequest request)
        read auth configuration and update request, if valid values found
        Parameters:
        request - request to enhance with credentials