@Mojo(name="publish-features-and-bundles")
public class PublishFeaturesAndBundlesMojo
extends org.apache.maven.plugin.AbstractMojo
http://wiki.eclipse.org/Equinox/p2/Publisher#Features_And_Bundles_Publisher_Application
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
additionalArgs
Optional line of additional arguments passed to the p2 application launcher.
|
private boolean |
append
Optional flag to append artifacts to an existing repository
|
private java.lang.String |
artifactRepositoryLocation
Location of the artifact repository to write.
|
private boolean |
compress
Create compressed jars rather than plain xml
|
private static java.lang.String |
CONTENT_PUBLISHER_APP_NAME |
private int |
forkedProcessTimeoutInSeconds
Kill the forked process after a certain number of seconds.
|
private org.eclipse.sisu.equinox.launching.internal.P2ApplicationLauncher |
launcher |
private java.lang.String |
metadataRepositoryLocation
Location of the metadata repository to write.
|
private org.apache.maven.project.MavenProject |
project |
private boolean |
publishArtifacts
Publish artifacts to repository
|
private boolean |
reusePack200Files
Optional flag to include .pack.gz files
|
private java.lang.String |
sourceLocation
Location with features and/or plugins directories on which the features and bundles publisher
shall be called.
|
Constructor and Description |
---|
PublishFeaturesAndBundlesMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
private java.lang.String[] |
getAdditionalArgs() |
private java.lang.String[] |
getAppendFlag() |
private java.lang.String[] |
getCompressFlag() |
private java.lang.String[] |
getPublishArtifactFlag() |
private java.lang.String[] |
getReusePack200FilesFlag() |
private void |
publishContent() |
private static java.lang.String CONTENT_PUBLISHER_APP_NAME
@Parameter(defaultValue="${project.build.directory}/repository") private java.lang.String metadataRepositoryLocation
@Parameter(defaultValue="${project.build.directory}/repository") private java.lang.String artifactRepositoryLocation
@Parameter(defaultValue="${project.build.directory}/source") private java.lang.String sourceLocation
@Parameter(defaultValue="true") private boolean compress
@Parameter(defaultValue="false") private boolean append
@Parameter(defaultValue="true") private boolean publishArtifacts
@Parameter(defaultValue="false") private boolean reusePack200Files
@Parameter(defaultValue="") private java.lang.String additionalArgs
@Parameter(property="p2.timeout", defaultValue="0") private int forkedProcessTimeoutInSeconds
@Parameter(property="project") private org.apache.maven.project.MavenProject project
@Component private org.eclipse.sisu.equinox.launching.internal.P2ApplicationLauncher launcher
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
private void publishContent() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
private java.lang.String[] getCompressFlag()
private java.lang.String[] getAppendFlag()
private java.lang.String[] getPublishArtifactFlag()
private java.lang.String[] getReusePack200FilesFlag()
private java.lang.String[] getAdditionalArgs() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- is thrown if parsing of additional arguments fails