On 2017-02-13T12:45:38 +0000
list+org.apache.fe...@io7m.com wrote:
> 
> The top-level Specification-Title, Specification-Version, etc elements do 
> appear in the
> manifest of the produced bundle, but the Section elements are quietly 
> ignored. Is
> there another way to achieve what I want?
> 
> M

To visitors from the future: What was needed was to provide a Maven
Archiver definition:

<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <version>3.2.0</version>
  <extensions>true</extensions>
  <configuration>
    <archive>
      <manifest>
        <mainClass>nu.xom.Info</mainClass>
      </manifest>

      <manifestEntries>
        <Specification-Title>XOM</Specification-Title>
        <Specification-Version>${project.version}</Specification-Version>
        <Specification-Vendor>Elliotte Rusty Harold</Specification-Vendor>
        <Implementation-Title>XOM</Implementation-Title>
        <Implementation-Version>${project.version}</Implementation-Version>
        <Implementation-Vendor>Elliotte Rusty Harold</Implementation-Vendor>
        <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id>
      </manifestEntries>

      <manifestSections>
        <manifestSection>
          <name>nu/xom/</name>
          <manifestEntries>
            <Sealed>true</Sealed>
            <Specification-Title>XOM</Specification-Title>
            <Implementation-Title>nu.xom</Implementation-Title>
            <Implementation-Version>${project.version}</Implementation-Version>
            <Implementation-Vendor>Elliotte Rusty Harold</Implementation-Vendor>
          </manifestEntries>
        </manifestSection>

        <manifestSection>
          <name>nu/xom/xslt</name>
          <manifestEntries>
            <Sealed>true</Sealed>
            <Specification-Title>XOM XSLT interface</Specification-Title>
            <Implementation-Title>nu.xom.xslt</Implementation-Title>
          </manifestEntries>
        </manifestSection>

        <manifestSection>
          <name>nu/xom/xinclude</name>
          <manifestEntries>
            <Sealed>true</Sealed>
            <Specification-Title>XOM XInclude engine</Specification-Title>
            <Implementation-Title>nu.xom.xinclude</Implementation-Title>
          </manifestEntries>
        </manifestSection>

        <manifestSection>
          <name>nu/xom/converters</name>
          <manifestEntries>
            <Sealed>true</Sealed>
            <Specification-Title>XOM converters to other object 
models</Specification-Title>
            <Implementation-Title>nu.xom.converters</Implementation-Title>
          </manifestEntries>
        </manifestSection>

        <manifestSection>
          <name>nu/xom/canonical</name>
          <manifestEntries>
            <Sealed>true</Sealed>
            <Specification-Title>XOM Canonical XML support</Specification-Title>
            <Implementation-Title>nu.xom.canonical</Implementation-Title>
          </manifestEntries>
        </manifestSection>
      </manifestSections>
    </archive>

    <instructions>
      <Bundle-Vendor>xom.nu</Bundle-Vendor>
      
<Bundle-RequiredExecutionEnvironment>J2SE-1.2</Bundle-RequiredExecutionEnvironment>

      <Import-Package>
        com.sun.org.apache.xerces.internal.jaxp;    resolution:="optional",
        com.sun.org.apache.xerces.internal.parsers; resolution:="optional",

        javax.swing;      resolution:="optional",
        javax.swing.tree; resolution:="optional",
        *
      </Import-Package>

      <Export-Package>
        nu.xom,
        nu.xom.canonical,
        nu.xom.converters,
        nu.xom.xinclude,
        nu.xom.xslt
      </Export-Package>
    </instructions>
  </configuration>
</plugin>

M

Attachment: pgpxx8yUfPAZo.pgp
Description: OpenPGP digital signature

Reply via email to