@Mojo(name="package-plugin") public class PackagePluginMojo extends AbstractTychoPackagingMojo
Modifier and Type | Field and Description |
---|---|
private org.codehaus.plexus.archiver.util.DefaultFileSet[] |
additionalFileSets
Additional files to be included in the bundle jar.
|
private org.apache.maven.archiver.MavenArchiveConfiguration |
archive
The maven archiver to use.
|
protected java.io.File |
buildDirectory
The output directory of the jar file
By default this is the Maven "target/" directory.
|
protected java.lang.String |
finalName
Name of the generated JAR.
|
private org.codehaus.plexus.archiver.jar.JarArchiver |
jarArchiver
The Jar archiver.
|
protected EclipsePluginProject |
pdeProject |
private SourceReferences |
sourceReferences
Whether to generate an Eclipse-SourceReferences MANIFEST
header.
|
private SourceReferenceComputer |
soureReferenceComputer |
plexus, project, projectHelper, qualifier, session, strictBinIncludes, useDefaultExcludes
Constructor and Description |
---|
PackagePluginMojo() |
Modifier and Type | Method and Description |
---|---|
private java.io.File |
createPluginJar() |
private void |
createSubJars() |
void |
execute() |
private java.io.File |
makeJar(BuildOutputJar jar) |
private java.io.File |
updateManifest() |
checkBinIncludesExist, getDependencyArtifacts, getDependencyWalker, getFileSet, getTychoProjectFacet, getTychoProjectFacet
@Parameter(property="project.build.directory", required=true) protected java.io.File buildDirectory
protected EclipsePluginProject pdeProject
@Component(role=org.codehaus.plexus.archiver.Archiver.class, hint="jar") private org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
@Parameter private org.codehaus.plexus.archiver.util.DefaultFileSet[] additionalFileSets
<additionalFileSets> <fileSet> <directory>${project.build.directory}/mytool-gen/</directory> <includes> <include>**/*</include> </includes> </fileSet> </additionalFileSets>
@Parameter(property="project.build.finalName", alias="jarName", required=true) protected java.lang.String finalName
@Parameter private org.apache.maven.archiver.MavenArchiveConfiguration archive
addMavenDescriptor
flag, which indicates
whether the generated archive will contain the pom.xml and pom.properties file. If no archive
configuration is specified, the default value is true
. If the maven descriptor
should not be added to the artifact, use the following configuration:
<plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-packaging-plugin</artifactId> <version>${tycho-version}</version> <configuration> <archive> <addMavenDescriptor>false</addMavenDescriptor> </archive> </configuration> </plugin>
@Parameter private SourceReferences sourceReferences
<sourceReferences> <generate>true</generate> </sourceReferences>Note that a
SourceReferencesProvider
component must be registered for the SCM type
being used. You may also override the generated value by configuring:
<sourceReferences> <generate>true</generate> <customValue>scm:myscm:customSourceReferenceValue</customValue> </sourceReferences>
@Component private SourceReferenceComputer soureReferenceComputer
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private void createSubJars() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private java.io.File makeJar(BuildOutputJar jar) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private java.io.File createPluginJar() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private java.io.File updateManifest() throws java.io.IOException, org.apache.maven.plugin.MojoExecutionException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException