Java Reference
In-Depth Information
bundles. But using the bundle plug-in's defaults can reduce the amount of configura-
tion it needs, as shown next.
Listing 8.3
A sample pom.xml for the fancyfoods.department.cheese bundle
<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.persistence</artifactId>
<packaging>bundle</packaging>
<version>1.0.0</version>
<name>Fancy Foods Persistence Bundle</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.2.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
Accept defaults for bundle
name and version
No package exports
<Export-Package />
<Meta-Persistence>
META-INF/persistence.xml
</Meta-Persistence>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>fancyfoods</groupId>
<artifactId>fancyfoods.api</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_2.0_spec</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</project>
Add header and value
Standard Maven
dependencies on
other bundles
 
Search WWH ::




Custom Search