On 27.05.2010 16:34, Justin Edelson wrote:
Issues are best reported via JIRA.
ok
But I think you're wrong about this.<configuration> can go in either location (or both) depending upon what you want to configure.
Thats true. If you use the plugin to build the package (using <packaging>bundle</packaing>) then you put <configuration> directly into the plugin tag. But this is not the case in the given example. In the example the plugin creates the manifest only, leaving the packaging stuff to another plugin (jar, war or whatever). I copied the example[2] from the documentation and added my <instructions>. Unfortunately the plugin didn't used my <instructions>, but were using default values. So I had to move the configuration tag into the execution tag.
So I'm still convinced that the documentation is in this point at least not as helpful as it could be.
What version of Maven are you using?
I tried with 2.0.9 and 2.2.1. 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]

