Hello,

first of all I'm new to the list and therefore want to say: hi all :)

The felix bundle plugin documentation[1] is wrong in one point. The section "Adding OSGi metadata to existing projects without changing the packaging type" contains a non working plugin configuration in the second code snippet [2].

This didn't work for me because the configuration wasn't used/found. One has to put the configuration tag into the execution tag to make it work. So the correct version of [2] is [3]. Otherwise the plugin will ignore the configuration. This is necessary because we don't use packaging bundle in this setup.

Is this the correct way to report such things or should I create a bug in jira?

kind regards,

Manuel


[1]
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

[2]
<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <executions>
    <execution>
      <id>bundle-manifest</id>
      <phase>process-classes</phase>
      <goals>
        <goal>manifest</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <supportedProjectTypes>
      <supportedProjectType>jar</supportedProjectType>
      <supportedProjectType>bundle</supportedProjectType>
      <supportedProjectType>war</supportedProjectType>
    </supportedProjectTypes>
    <instructions>
      <!-- ...etc... -->
    </instructions>
  </configuration>
</plugin>

[3]
<plugin>
  <groupId>org.apache.felix</groupId>
  <artifactId>maven-bundle-plugin</artifactId>
  <executions>
    <execution>
      <id>bundle-manifest</id>
      <phase>process-classes</phase>
      <goals>
        <goal>manifest</goal>
      </goals>
      <configuration>
        <supportedProjectTypes>
          <supportedProjectType>jar</supportedProjectType>
          <supportedProjectType>bundle</supportedProjectType>
          <supportedProjectType>war</supportedProjectType>
        </supportedProjectTypes>
        <instructions>
          <!-- ...etc... -->
        </instructions>
      </configuration>
    </execution>
  </executions>
</plugin>


--
--------------------------------
Manuel Meßner
Junior Softwareentwickler
Forschung und Entwicklung

Neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 508
fax: +49.30 24627 120
[email protected]
http://www.Neofonie.de

Handelsregister
Berlin-Charlottenburg: HRB 67460

Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
(Sprecher der Geschäftsführung)
Nurhan Yildirim
--------------------------------
--

Am 7. und 8. Juni 2010 findet in Berlin die Konferenz Berlin Buzzwords ( 
http://berlinbuzzwords.de/ ) statt, bei der die Neofonie GmbH als Silver 
Sponsor diese Veranstaltung unterstuetzt.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to