@Mojo(name="manifest", defaultPhase=PROCESS_CLASSES, requiresProject=true, threadSafe=true, requiresDependencyResolution=RUNTIME) public class NetBeansManifestUpdateMojo extends AbstractNbmMojo
nbm
lifecycle/packaging.
In order to have the generated manifest picked up by the maven-jar-plugin,
one shall add the following configuration snippet to maven-jar-plugin.
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> <configuration> <useDefaultManifestFile>true</useDefaultManifestFile> </configuration> </plugin>
AbstractNbmMojo.ArtifactResult
Modifier and Type | Field and Description |
---|---|
protected File |
descriptor
Deprecated.
all content from the module descriptor can be defined as plugin configuration now, will be removed in 4.0 entirely
|
protected String |
moduleType
Deployment type of the module, allowed values are
normal ,eager ,autoload ,
disabled . |
protected File |
nbmBuildDir
NetBeans module assembly build directory.
|
protected File |
nbmJavahelpSource
The location of JavaHelp sources for the project.
|
Constructor and Description |
---|
NetBeansManifestUpdateMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
execute plugin
|
createDefaultDescriptor, createDependencyTree, readModuleDescriptor, turnJarToNbmFile
antProject, registerNbmAntTasks
@Parameter(defaultValue="${project.build.directory}/nbm", property="maven.nbm.buildDir") protected File nbmBuildDir
@Parameter(defaultValue="${basedir}/src/main/nbm/module.xml") protected File descriptor
@Parameter(defaultValue="${basedir}/src/main/javahelp") protected File nbmJavahelpSource
@Parameter(defaultValue="normal") protected String moduleType
normal
,eager
,autoload
,
disabled
.
autoload
- Such a module is
automatically enabled when some other module requires it and
automatically disabled otherwise.
eager
- This module type gets
automatically enabled when all it's dependencies are
satisfied. Disabled otherwise.
normal
- This is the default
value. This kind of module is enabled/disabled manually by
the user. It installs enabled.
disabled
- This kind of module is enabled/disabled manually by
the user. It installs disabled. Since 3.11
Copyright © 2005-2015 Codehaus. All Rights Reserved.