Issues are best reported via JIRA.

But I think you're wrong about this. <configuration> can go in either
location (or both) depending upon what you want to configure.

What version of Maven are you using?


On 5/27/10 10:31 AM, Manuel Meßner wrote:
> 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>
> 
> 


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

Reply via email to