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

com.itemis.maven.plugins.cdi.annotations.ProcessingStep Maven / Gradle / Ivy

Go to download

Provides an abstract Mojo that enables CDI-based dependency injection for Maven Plugins.

There is a newer version: 3.4.0
Show newest version
package com.itemis.maven.plugins.cdi.annotations;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.itemis.maven.plugins.cdi.CDIMojoProcessingStep;

/**
 * A class-level annotation used to specify some metadata for the executions of the {@link CDIMojoProcessingStep
 * injected CDI Mojo instances}.
* * @author Stanley Hillner * @since 1.0.0 */ @Target({ TYPE }) @Retention(RUNTIME) public @interface ProcessingStep { /** * @return the id of the processing step which is used for the orchestration of the processing workflow. * @since 2.0.0 */ String id(); /** * @return a description of this processing step's responsibilities. This description will later be used as output to * users of your plugin that want to provide a custom processing workflow. * @since 2.0.0 */ String description() default ""; /** * If this step requires a network connection but Maven is executed in offline mode, the workflow won't ever be * executed and the build will fail fast with an appropriate error message. * * @return {@code true} if the execution of this processing step requires Maven to operate in online mode. Return * {@code false} if the step can be executed safely without having a network connection. * @since 2.1.0 */ boolean requiresOnline() default true; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy