Java Reference
In-Depth Information
<layout>p2</layout>
<url>file://${repository.dir}</url>
</repository>
</repositories>
In section 8.2.2, we described how the Maven bundle plug-in could automatically find
Blueprint files. As far as we know, the Tycho plug-in hasn't achieved this level of sup-
port for enterprise OSG i. But whether you're using Tycho or the bundle plug-in,
Maven does have some more enterprise OSG i tricks up its sleeve.
8.2.5
The Maven EBA plug-in
Apache Aries provides a useful Maven plug-in for building EBA archives. All depen-
dencies listed in the EBA pom are zipped up into a generated .eba file.
Listing 8.5
The pom.xml file to build the Fancy Foods EBA
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fancyfoods</groupId>
<artifactId>fancyfoods.application</artifactId>
<packaging>eba</packaging>
<version>1.0.0</version>
<name>Fancy Foods Application</name>
<dependencies>
<dependency>
<groupId>fancyfoods</groupId>
<artifactId>fancyfoods.api</artifactId>
<version>1.0.0</version>
</dependency>
Packaging
is EBA
More EBA
contents
...
<build>
<plugins>
<plugin>
<groupId>org.apache.aries</groupId>
<artifactId>eba-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<generateManifest>true</generateManifest>
</configuration>
</plugin>
</plugins>
</build>
</project>
By default, the EBA plug-in will look for an APPLICATION.MF file in src/main/
resources/ META-INF . If none is found, it won't include an application manifest (don't
worry, the manifest is optional, so your application will still work). To have the EBA
EBA plug-in must
be referenced
By default, no
manifest is generated
 
Search WWH ::




Custom Search