All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.s4hana.DiagnosisReportMojo Maven / Gradle / Ivy

/*
 * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.s4hana;

import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import com.sap.cloud.sdk.s4hana.usageanalytics.DiagnosisReport;

/**
 * Mojo providing a diagnosis report that can be used during support inquiries.
 * 

* Note: This Mojo only delegates to the {@link DiagnosisReport} class that is referenced via a separate dependency. * This enables a self-updating mechanism for this plugin without the need for users to update the plugin manually. */ @Mojo( name = "diagnosis-report", threadSafe = true ) public class DiagnosisReportMojo extends AbstractMojo { @Parameter( defaultValue = "${session}", readonly = true ) private MavenSession mavenSession; @Parameter( defaultValue = "${mojoExecution}", readonly = true ) private MojoExecution mojoExecution; @Override public void execute() { new DiagnosisReport(mavenSession, mojoExecution).execute(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy