Package org.yamcs.maven
Class AbstractYamcsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.yamcs.maven.AbstractProgramMojo
-
- org.yamcs.maven.AbstractYamcsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
BundleMojo,RunMojo
public abstract class AbstractYamcsMojo extends AbstractProgramMojo
Collects general Maven functionalities for use in specific Mojos
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.plexus.archiver.manager.ArchiverManagerarchiverManagerprotected FileclassesDirectoryprotected FileconfigurationDirectoryThe directory that contains Yamcs configuration files.protected org.apache.maven.project.MavenProjectHelperprojectHelperprotected booleanskipSkip executionprotected Filetarget-
Fields inherited from class org.yamcs.maven.AbstractProgramMojo
project, repositorySystem, repositorySystemSession
-
-
Constructor Summary
Constructors Constructor Description AbstractYamcsMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyExecutableResource(String resource, File file)protected voidcopyResource(String resource, File file)protected List<File>getDependencyFiles(List<String> scopes)protected voidinitConfiguration(File directory)protected FileresolveArtifact(String artifact)-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Field Detail
-
skip
@Parameter(property="yamcs.skip", defaultValue="false") protected boolean skipSkip execution
-
configurationDirectory
@Parameter(property="yamcs.configurationDirectory", defaultValue="${basedir}/src/main/yamcs") protected File configurationDirectoryThe directory that contains Yamcs configuration files. By convention this contains subfolders namedetcandmdb.Relative paths in yaml configuration files are resolved from this directory.
-
target
@Parameter(defaultValue="${project.build.directory}", readonly=true) protected File target
-
classesDirectory
@Parameter(defaultValue="${project.build.outputDirectory}", readonly=true) protected File classesDirectory
-
archiverManager
@Component protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
-
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelper
-
-
Method Detail
-
initConfiguration
protected void initConfiguration(File directory) throws IOException
- Throws:
IOException
-
copyResource
protected void copyResource(String resource, File file) throws IOException
- Throws:
IOException
-
copyExecutableResource
protected void copyExecutableResource(String resource, File file) throws IOException
- Throws:
IOException
-
getDependencyFiles
protected List<File> getDependencyFiles(List<String> scopes) throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
getDependencyFilesin classAbstractProgramMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
resolveArtifact
protected File resolveArtifact(String artifact)
- Overrides:
resolveArtifactin classAbstractProgramMojo
-
-