Package org.codehaus.mojo.license
Enum AbstractDownloadLicensesMojo.ErrorRemedy
java.lang.Object
java.lang.Enum<AbstractDownloadLicensesMojo.ErrorRemedy>
org.codehaus.mojo.license.AbstractDownloadLicensesMojo.ErrorRemedy
- All Implemented Interfaces:
Serializable
,Comparable<AbstractDownloadLicensesMojo.ErrorRemedy>
- Enclosing class:
AbstractDownloadLicensesMojo
public static enum AbstractDownloadLicensesMojo.ErrorRemedy
extends Enum<AbstractDownloadLicensesMojo.ErrorRemedy>
What to do in case of a license download error.
- Since:
- 1.18
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe first encountered error is logged and aMojoFailureException
is thrownAll errors are ignoredAll errors are output to the log as warningsError messages are added as<downloaderMessages>
toAbstractDownloadLicensesMojo.licensesErrorsFile
; in case there are error messages, the build will fail after processing all dependencies. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ignore
All errors are ignored -
warn
All errors are output to the log as warnings -
failFast
The first encountered error is logged and aMojoFailureException
is thrown -
xmlOutput
Error messages are added as<downloaderMessages>
toAbstractDownloadLicensesMojo.licensesErrorsFile
; in case there are error messages, the build will fail after processing all dependencies.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-