Title: EBAMavenPluginProject
# EBA Maven Plugin
The EBA Maven Plugin provides the ability to generate EBA archives using
Maven. The EBA archive format is described in [Applications](applications.html)
. An EBA archive can optionally contain an Application manifest
(APPLICATION.MF). This can be added in one of two ways
1. Hand written and added into the archive.
1. Generated based on pom configuration.
## Using the Plugin
The plugin is included by as follows:
org.apache.aries
eba-maven-plugin
By default it will not generate a manifest, so in the above example it will
attempt to copy a pre-defined APPLICATION.MF from
src/main/resources/META-INF. If that file does not exist, then no
application manifest will be included.
## Generating an APPLICATION.MF
The following example shows how to get the plugin to generate an
APPLICATION.MF based on the pom configuration:
org.apache.aries
eba-maven-plugin
true
The pom to application manfiest header mapping is as follows:
* Pom . -> Application-SymbolicName
* Pom -> Application-Name
* Pom -> Application-Version (cleaned up for OSGi)
* Pom -> Application-Description
* Pom -> Application-Content
## Overriding Application-SymbolicName
The application symbolic name defaults to the
$\{pom.groupId\}.$\{pom.artifaceId\}. The following shows how to override
this:
${pom.artifaceId}
## Adding Application-ExportService and Application-ImportService headers
The application import service and export service headers can be set as
follows. The text inside the elements is included as-is.
...
...
## Including transitive dependencies
By default, the archive will only include the direct dependencies of the
project. Transitive dependencies can be includes as follows:
true