Hi,
i try to create a shaded osgi "uber"-jar with the use of maven shade plugin. This jar will contain all our 3rd party libraries.
Because of the inability to tell bundlor to use the dependencies in the pom, we use the maven-dependecy plugin to copy all dependencies into a single folder and set this folder in the inputPath property of the bundlor plugin. Any suggestion how to do this more elegant will be great.
Configured like this the bundlor generates the needed Export entry. But in this case the bundlor no longer uses the template.mf in the ${basedir} folder. Without the inputPath the template is used.
Thanks for help.
Bundle-ManifestVersion: 2
Bundle-Name: ${project.name}
SCM-Version: 0815
Export-Template: *
Import-Template: *
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.virgo.bundlor</groupId>
<artifactId>org.eclipse.virgo.bundlor.maven</artifactId>
<version>1.1.2.RELEASE</version>
<dependencies>
<dependency>
<groupId>org.eclipse.virgo.bundlor</groupId>
<artifactId>org.eclipse.virgo.bundlor</artifactId>
<version>1.1.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.eclipse.virgo.bundlor</groupId>
<artifactId>org.eclipse.virgo.bundlor.blint</artifactId>
<version>1.1.2.RELEASE</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>bundlor</id>
<goals>
<goal>bundlor</goal>
</goals>
<configuration>
<inputPath>${project.build.directory}/dependency</inputPath>
</configuration>
</execution>
</executions>
</plugin>
...