Class AbstractPublishMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.tycho.core.maven.AbstractP2Mojo
org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PublishCategoriesMojo,PublishEEProfileMojo,PublishOsgiEEMojo,PublishProductMojo
public abstract class AbstractPublishMojo
extends org.eclipse.tycho.core.maven.AbstractP2Mojo
-
Field Summary
Fields inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
projectManagerFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidexecute()protected abstract Collection<org.eclipse.tycho.DependencySeed>publishContent(org.eclipse.tycho.p2.tools.publisher.facade.PublisherServiceFactory publisherFactory) Publishes source files with the help of the given publisher service.Methods inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
getBuildContext, getBuildDirectory, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSessionMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractPublishMojo
public AbstractPublishMojo()
-
-
Method Details
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
publishContent
protected abstract Collection<org.eclipse.tycho.DependencySeed> publishContent(org.eclipse.tycho.p2.tools.publisher.facade.PublisherServiceFactory publisherFactory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException Publishes source files with the help of the given publisher service.- Returns:
- the list of root installable units that has been published
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-