Class PublishProductMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.core.maven.AbstractP2Mojo
-
- org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
-
- org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="publish-products", defaultPhase=PACKAGE) public final class PublishProductMojo extends AbstractPublishMojoPublishes all product definitions files (*.product) that are present in the root of the project.
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.archiver.UnArchiverdeflaterprivate EclipseRepositoryProjecteclipseRepositoryProjectprivate FileLockServicefileLockServiceprivate java.lang.StringflavorDeprecated.This parameter has no useful effect and may be removed in a future version of Tycho.private static org.osgi.framework.VersionLUNA_SR2_EXECUTABLE_FEATURE_VERSION
-
Constructor Summary
Constructors Constructor Description PublishProductMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckMacOSLauncherCompatibility(ArtifactDescriptor executablesFeature)private java.io.FilegetExpandedLauncherBinaries()(package private) static booleanisLunaOrOlder(org.osgi.framework.Version featureVersion)private booleanmacOSConfigured()protected java.util.Collection<DependencySeed>publishContent(PublisherServiceFactory publisherServiceFactory)Publishes source files with the help of the given publisher service.-
Methods inherited from class org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
execute
-
Methods inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
getBuildContext, getBuildDirectory, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSession
-
-
-
-
Field Detail
-
LUNA_SR2_EXECUTABLE_FEATURE_VERSION
private static final org.osgi.framework.Version LUNA_SR2_EXECUTABLE_FEATURE_VERSION
-
flavor
@Parameter(defaultValue="tooling") @Deprecated private java.lang.String flavor
Deprecated.This parameter has no useful effect and may be removed in a future version of Tycho.The name of the p2 installation flavor to create. De facto, this parameter is set to "tooling" in all uses of p2.
-
deflater
@Component(role=org.codehaus.plexus.archiver.UnArchiver.class, hint="zip") private org.codehaus.plexus.archiver.UnArchiver deflater
-
fileLockService
@Component private FileLockService fileLockService
-
eclipseRepositoryProject
@Component(role=TychoProject.class, hint="eclipse-repository") private EclipseRepositoryProject eclipseRepositoryProject
-
-
Method Detail
-
publishContent
protected java.util.Collection<DependencySeed> publishContent(PublisherServiceFactory publisherServiceFactory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Description copied from class:AbstractPublishMojoPublishes source files with the help of the given publisher service.- Specified by:
publishContentin classAbstractPublishMojo- Returns:
- the list of root installable units that has been published
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getExpandedLauncherBinaries
private java.io.File getExpandedLauncherBinaries() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkMacOSLauncherCompatibility
private void checkMacOSLauncherCompatibility(ArtifactDescriptor executablesFeature) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isLunaOrOlder
static boolean isLunaOrOlder(org.osgi.framework.Version featureVersion)
-
macOSConfigured
private boolean macOSConfigured()
-
-