Class CopyResourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.iip_ecosphere.platform.tools.maven.dependencies.CopyResourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="copy-resources",
threadSafe=true)
public class CopyResourcesMojo
extends org.apache.maven.plugin.AbstractMojo
Simplified copy-resources Mojo, intentionally without filtering as this causes dependency conflicts. The resources
here allow for specifying multiple source directories, the first existing one is selected as source.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Fileprivate booleanprivate booleanprivate intprivate Fileprivate List<CopyResourcesMojo.Resource> private booleanFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()getResourceFiles(CopyResourcesMojo.Resource resource) Returns the files to be consider forresource.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
resources
-
outputDirectory
-
skip
@Parameter(property="maven.resources.skip", defaultValue="false") private boolean skip -
failOnError
@Parameter(required=false) private boolean failOnError -
failOnNotExists
@Parameter(required=false) private boolean failOnNotExists -
maxLevels
@Parameter private int maxLevels -
basedir
-
-
Constructor Details
-
CopyResourcesMojo
public CopyResourcesMojo()
-
-
Method Details
-
getResourceFiles
Returns the files to be consider forresource.- Parameters:
resource- the resource- Returns:
- the files
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-