Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » bundlor and shade in maven environment(creation of Export-Package entries for depending jars)
bundlor and shade in maven environment [message #1415427] Tue, 02 September 2014 19:16
Hüseyin Kartal is currently offline Hüseyin KartalFriend
Messages: 12
Registered: July 2009
Junior Member
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>
...
Previous Topic:Virgo Bundlor 1.1.2 RELEASE Error
Next Topic:Tomcat 8.0.12 integration
Goto Forum:
  


Current Time: Mon Nov 19 19:24:23 GMT 2018

Powered by FUDForum. Page generated in 0.01474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top