Class MojoCacheMavenArtifacts
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
-
- br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
-
- br.com.c8tech.tools.maven.plugin.osgi.container.MojoCacheMavenArtifacts
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="cacheMavenArtifacts", defaultPhase=PROCESS_RESOURCES, threadSafe=true, requiresDependencyResolution=COMPILE, requiresDependencyCollection=COMPILE, instantiationStrategy=PER_LOOKUP, requiresProject=true, aggregator=false) public class MojoCacheMavenArtifacts extends AbstractOsgiContainerPackMojoThis mojo will download or copy into the cache folder all artifacts declared in the configuration tag artifactConfigSets.As the org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher application was designed to work with eclipse generated bundles which uses its symbolic-name and version is separated by "_" instead the one used by maven "-", it will be necessary to rename the downloaded artifact file name.
It was not designed be used stand alone, but as an integrated part of the default lifecycle of the osgi.repository packaging type.
- Author:
- Cristiano Gavião
-
-
Field Summary
-
Fields inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
DOWNLOAD_STATUS, EQUINOX_CONFIGURATION_NAME, EQUINOX_CONFIGURATION_PATH, FELIX_CONFIGURATION_NAME, FELIX_CONFIGURATION_PATH, PROPERTY_CACHE_DIR, PROPERTY_WORK_DIR
-
-
Constructor Summary
Constructors Constructor Description MojoCacheMavenArtifacts(org.apache.maven.project.MavenProject project, io.takari.incrementalbuild.BuildContext pCopyBuildContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoBeforeSkipMojo()Used to specify any action that must be executed when the mojo are being skipped by maven reactor.protected voidexecuteMojo()-
Methods inherited from class br.com.c8tech.tools.maven.plugin.osgi.container.AbstractOsgiContainerPackMojo
addMavenArtifactSet, addScope, calculateContainerConfigurationFileOutputPath, createDefaultDirectories, executeExtraInitializationSteps, getBaseContainerConfigurationFileUrl, getBundleValidArtifactFilter, getCacheDirectory, getConfiguratorInitialFile, getContainer, getContainerCacheDirectory, getContainerPomDependenciesGAV, getContainerWorkDirectory, getDefaultSupportedPackagings, getEncoding, getExcludedArtifacts, getLocalRepositoryGAV, getLogbackConfigurationFile, getMavenArtifactSets, getMsgChoiceArtifact, getProjectBuilder, getScopes, isOptionalConsidered, isRunOnlyAtExecutionRoot, isSkip, isSkipConfigurationGen, isTransitiveConsidered, loadProperties, setBaseContainerConfigurationFileUrl, setConfiguratorInitialFile, setContainerPomDependenciesGAV, setEncoding, setLocalRepositoryGAV, setLogbackConfigurationFile, setScopes, setSkipConfigurationGen
-
Methods inherited from class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo
addExtraSupportedPackaging, cleanWorkDirectory, combineScopes, copyInternalFileToProjectDir, copyInternalFileToProjectDir, doInitialValidation, execute, getBasedir, getBuildDir, getCachedFileNamePattern, getCacheSubDirectory, getClassifier, getDependenciesHelper, getDirectoryHelper, getExtraSupportedPackagings, getFilterFactory, getFinalName, getGoalName, getLocalRepository, getMavenSession, getPluginDescriptor, getProject, getProjectHelper, getRemoteRepositories, getRepositorySystem, getRuntimeInformation, getSupportedPackagings, getWorkDirectory, getWorkSubDirectory, isAggregator, isVerbose, loadProject, loadProject, registerArtifactsIntoAggregatorBuildContext, setBuildDir, setClassifier, setExtraSupportedPackagings, setFinalName, setWorkDirectory
-
-
-
-
Method Detail
-
doBeforeSkipMojo
protected void doBeforeSkipMojo() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractOsgiContainerPackMojoUsed to specify any action that must be executed when the mojo are being skipped by maven reactor.- Overrides:
doBeforeSkipMojoin classAbstractOsgiContainerPackMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- When the skipping process had any problem
-
executeMojo
protected void executeMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Overrides:
executeMojoin classbr.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-