Class DirectorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.plugins.p2.director.AbstractProductMojo
-
- org.eclipse.tycho.plugins.p2.director.DirectorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="materialize-products", defaultPhase=PACKAGE) public final class DirectorMojo extends AbstractProductMojo
Creates product installations for the products defined in the project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectorMojo.DirectorRuntimeType
static class
DirectorMojo.InstallationSource
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description DirectorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
private RepositoryReferences
getBuildOutputRepository()
private DirectorRuntime
getDirectorRuntime()
private RepositoryReferences
getSourceRepositories()
private RepositoryReferences
getTargetPlatformRepositories()
-
Methods inherited from class org.eclipse.tycho.plugins.p2.director.AbstractProductMojo
getBuildDirectory, getEnvironments, getForkedProcessTimeoutInSeconds, getOsWsArch, getProductConfig, getProductMaterializeDirectory, getProductsBuildDirectory, getProject, getSession
-
-
-
-
Field Detail
-
osgiServices
@Component private EquinoxServiceFactory osgiServices
-
repositoryReferenceTool
@Component private RepositoryReferenceTool repositoryReferenceTool
-
standaloneDirectorFactory
@Component private StandaloneDirectorRuntimeFactory standaloneDirectorFactory
-
profile
@Parameter(defaultValue="DefaultProfile") private java.lang.String profile
The name of the p2 profile to be created.
-
profileNames
@Parameter private java.util.List<ProfileName> profileNames
-
installFeatures
@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.)
-
source
@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.
-
directorRuntime
@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 thesource
parameter is set torepository
.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getDirectorRuntime
private DirectorRuntime getDirectorRuntime() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
-
getSourceRepositories
private RepositoryReferences getSourceRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getBuildOutputRepository
private RepositoryReferences getBuildOutputRepository()
-
getTargetPlatformRepositories
private RepositoryReferences getTargetPlatformRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-