@Mojo(name="cacheMavenArtifacts",
defaultPhase=PROCESS_RESOURCES,
threadSafe=true,
requiresDependencyResolution=COMPILE,
requiresDependencyCollection=COMPILE,
instantiationStrategy=PER_LOOKUP,
requiresProject=true,
aggregator=false)
public class MojoCacheMavenArtifacts
extends AbstractOsgiContainerPackMojo
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.
DOWNLOAD_STATUS, EQUINOX_CONFIGURATION_NAME, EQUINOX_CONFIGURATION_PATH, FELIX_CONFIGURATION_NAME, FELIX_CONFIGURATION_PATH, PROPERTY_CACHE_DIR, PROPERTY_WORK_DIR| Constructor and Description |
|---|
MojoCacheMavenArtifacts(org.apache.maven.project.MavenProject project,
io.takari.incrementalbuild.BuildContext pCopyBuildContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doBeforeSkipMojo()
Used to specify any action that must be executed when the mojo are being
skipped by maven reactor.
|
protected void |
executeMojo() |
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, setSkipConfigurationGenaddExtraSupportedPackaging, 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@Inject
public MojoCacheMavenArtifacts(org.apache.maven.project.MavenProject project,
io.takari.incrementalbuild.BuildContext pCopyBuildContext)
protected void doBeforeSkipMojo()
throws org.apache.maven.plugin.MojoExecutionException
AbstractOsgiContainerPackMojodoBeforeSkipMojo in class AbstractOsgiContainerPackMojoorg.apache.maven.plugin.MojoExecutionException - When the skipping process had any
problemprotected void executeMojo()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
executeMojo in class br.com.c8tech.tools.maven.osgi.lib.mojo.AbstractCustomPackagingMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2015–2018 C8 Technology ME. All rights reserved.