Class DirectorMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.tycho.plugins.p2.director.DirectorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="director", defaultPhase=NONE, threadSafe=true, requiresProject=false) public class DirectorMojo extends org.apache.maven.plugin.AbstractMojo
Allows to run the director application to manage Eclipse Installations. This mojo can be used in two ways
  1. As a commandline invocation passing arguments as properties using mvn org.eclipse.tycho:tycho-p2-director-plugin:director -Ddestination=[target] ... -D...
  2. as an execution inside a pom
     <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-director-plugin</artifactId>
        <version>${tycho-version}</version>
        <executions>
           <execution>
              <goals>
                 <goal>director</goal>
              </goals>
              <phase>package</phase>
              <configuration>
                 <destination>...</destination>
                 ... other arguments ...
              </configuration>
           </execution>
        </executions>
     </plugin>
     
  • Constructor Details

    • DirectorMojo

      public DirectorMojo()
  • Method Details

    • 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
    • runDirector

      protected void runDirector(CommandLineArguments args) throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException