@Mojo(name="materialize-products",
defaultPhase=PACKAGE)
public final class DirectorMojo
extends AbstractProductMojo
Creates product installations for the products defined in the project.
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectorMojo.DirectorRuntimeType |
static class |
DirectorMojo.InstallationSource |
| Modifier and Type | Field and Description |
|---|---|
private DirectorMojo.DirectorRuntimeType |
directorRuntime
Runtime in which the director application is executed.
|
private boolean |
installFeatures
Include the feature JARs in installation.
|
private EquinoxServiceFactory |
osgiServices |
private java.lang.String |
profile
The name of the p2 profile to be created.
|
private java.util.List<ProfileName> |
profileNames |
private RepositoryReferenceTool |
repositoryReferenceTool |
private DirectorMojo.InstallationSource |
source
Source repositories to be used in the director calls.
|
private StandaloneDirectorRuntimeFactory |
standaloneDirectorFactory |
| Constructor and Description |
|---|
DirectorMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
private RepositoryReferences |
getBuildOutputRepository() |
private DirectorRuntime |
getDirectorRuntime() |
private RepositoryReferences |
getSourceRepositories() |
private RepositoryReferences |
getTargetPlatformRepositories() |
getBuildDirectory, getEnvironments, getForkedProcessTimeoutInSeconds, getOsWsArch, getProductConfig, getProductMaterializeDirectory, getProductsBuildDirectory, getProject, getSession@Component private EquinoxServiceFactory osgiServices
@Component private RepositoryReferenceTool repositoryReferenceTool
@Component private StandaloneDirectorRuntimeFactory standaloneDirectorFactory
@Parameter(defaultValue="DefaultProfile") private java.lang.String profile
The name of the p2 profile to be created.
@Parameter private java.util.List<ProfileName> profileNames
@Parameter(defaultValue="true") private boolean installFeatures
Include the feature JARs in installation. (Technically, this sets the property org.eclipse.update.install.features to true in the p2 profile.)
@Parameter(defaultValue="targetPlatform") private DirectorMojo.InstallationSource source
Source repositories to be used in the director calls. Can be
targetPlatform - to use the target platform as source (default)repository - to use the p2 repository in target/repository/ as
source. With this option, the build implicitly verifies that it would also be possible to
install the product from that repository with an external director application.
@Parameter(defaultValue="internal") private DirectorMojo.DirectorRuntimeType directorRuntime
Runtime in which the director application is executed. Can be
internal - to use the director application from Tycho's embedded OSGi
runtime (default)standalone - to create and use a stand-alone installation of the director
application. This option is needed if the product to be installed includes artifacts with
meta-requirements (e.g. to a non-standard touchpoint action). Requires that the
source parameter is set to repository.
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate DirectorRuntime getDirectorRuntime() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprivate RepositoryReferences getSourceRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate RepositoryReferences getBuildOutputRepository()
private RepositoryReferences getTargetPlatformRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException