On Mar 6, 2007, at 6:37 PM, Tim Moloney wrote:


Here's an updated template pom file.

Tim

<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/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache.felix.commons</groupId>
        <artifactId>build</artifactId>
        <version>0.9.0-incubator-SNAPSHOT</version>
    </parent>

    <properties>
      <shortName>FOO</shortName>
    </properties>

    <groupId>org.apache.felix.commons</groupId>
    <artifactId>${pom.groupId}.${shortName}</artifactId>
    <version>x.y.z</version>
    <packaging>bundle</packaging>

    <name>${shortName} bundle</name>
<description>This bundle simply wraps ${shortName}-${pom.version}.jar.</description>

    <organization>
        <name>Apache Felix Project</name>
        <url>http://incubator.apache.org/felix/</url>
    </organization>

    <dependencies>
        <dependency>
            <groupId>FOO-groupId</groupId>
            <artifactId>${shortName}</artifactId>
            <version>${pom.version}</version>
        </dependency>
    </dependencies>

I guess I am confused about this dependency template; this seems to imply that the bundle will have dependencies on itself. Shouldn't the dependencies template look something like this:

    <dependencies>
        <dependency>
            <groupId>BAR-groupId</groupId>
            <artifactId>BAR-artifactId</artifactId>
            <version>BAR-version</version>
        </dependency>
    </dependencies>

?

Or am I missing the point?

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                        <Export-Package>FOO</Export-Package>
                        <Private-Package>FOO.impl</Private-Package>
<!--
Uncomment this section after bnd-find-include-resource-in-classpath.patch from FELIX-204 has
been applied to bnd.
<Include-Resource>@${shortName}-${pom.version}.jar!/META-INF/ LICENSE.txt</Include-Resource>
-->

Also, what is the point of this?

-> richard

                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>

Reply via email to