You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Markus Künstler <ma...@pascada.de> on 2009/12/31 12:03:35 UTC

maven-bundle-plugin => Problem with Embed-Directory

Dear All,
im trying to embed all required jars within a lib-folder.
However, the folder never turns up in the bundle-jar.

My bundle-part of the POM looks like this:

<groupId>org.apache.felix</groupId>
	<artifactId>maven-bundle-plugin</artifactId>
		<extensions>true</extensions>
		<configuration>
		<manifestLocation>${project.basedir}/META-INF</manifestLocation>
			<instructions>

				<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId};singleton:=true</Bundle-SymbolicName>
					<Embed-Dependency>*;scope=compile|runtime;</Embed-Dependency>
					<Embed-Transitive>true</Embed-Transitive>
					<Bundle-ClassPath>.,lib</Bundle-ClassPath>

					<Bundle-Activator>de.pascada.idarewest.backend.internal.Activator</Bundle-Activator>
					<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
						
					<Embed-Directory>lib</Embed-Directory>

			</instructions>
		</configuration>

Calling mvn package fails and produces a lot of warmings like  'No sub JAR or directory lib/jta-1.1.jar' 
If i remove the <Embed-Dependency> , <Bundle-ClassPath> and <Embed-Transitive> lines the
bundle is build correctly but without any trace of the lib-folder.
Am I missing something?

regards,
markus






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org