Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] MANIFEST is not generated if custom Bnd plugin is used in maven-bundle-plugin

Found the cause after hours. I am writing it down, so it might helps for others.

I used bndlib 3.0.0 in my plugin project that caused the following import in my plugin module: Import-Package: aQute.bnd.osgi;version="[2.4,3)",...
When I switched to bndlib 2.4.1, the version "[2.3,3)" of the package aQute.bnd.osgi was imported and everything started to work.

Kind regards,
Balazs


On Wed, Mar 23, 2016 at 3:46 PM, Balázs Zsoldos <balazs.zsoldos@xxxxxxxxxx> wrote:
Hi,

I have the following issue:
  • I created a Bnd AnalyzerPlugin implementation in project A. Lets call it MyBndPlugin
  • I configured project B to use this plugin
  • MANIFEST is not generated in Eclipse into target/classes
The configuration of maven-bundle-plugin is similar to the following:

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extension>true</extension>
        <configuration>
          <instructions>
            <_plugin>foo.bar.MyBndPlugin</_plugin>
          </instructions>
        </configuration>
        <dependencies>
         <dependency>
           <groupId>foo.bar</groupId>
           <artifactId>foo.bar.bndplugin</artifactId>
           <version>1.0.0-SNAPSHOT</version>
         </dependency>
        </dependencies>
      </plugin>

The configuration works well if I say "mvn process-classes" on the command line.

Do you have any idea how I could make it work in Eclipse?

Thanks and regards,
Balazs Zsoldos


Back to the top