You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lahiru Gunathilake <gl...@gmail.com> on 2009/12/09 14:31:09 UTC
Creating a jar with manifest only using maven-bundle-plugin
Hi all,
I wanted to create bundle(OSGi jar file) which just have a manifest file
only, so when I try to do that I'm getting the following error.
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Classpath is empty. Private-Package and Export-Package can only expand
from the classpath when there is one
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Instructions for Export-Package that are never used:
javax\.servlet\.resources, javax\.servlet, javax\.servlet\.http,
org\.wso2\.carbon\.bridge, org\.wso2\.carbon\.server\.transports
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Superfluous export-package instructions: [javax.servlet,
javax.servlet.http, javax.servlet.resources, org.wso2.carbon.bridge,
org.wso2.carbon.server.transports]
[WARNING] Warning building bundle org.wso2.carbon:servletbridge:bundle:1.0.0
: Did not find matching referal for *
[ERROR] Error building bundle org.wso2.carbon:servletbridge:bundle:1.0.0 :
The JAR is empty
[ERROR] Error(s) found in bundle configuration
My pom.xml looks like this.
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.wso2.carbon</groupId>
<artifactId>carbon-orbit-parent</artifactId>
<version>2.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.carbon</groupId>
<artifactId>servletbridge</artifactId>
<packaging>bundle</packaging>
<name>org.wso2.carbon.servletbridge</name>
<version>1.0.0</version>
<description>
Servletbridge Extension Bundle
</description>
<url>http://wso2.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>servletbridge</Bundle-SymbolicName>
<Bundle-Name>Servletbridge Extension
Bundle</Bundle-Name>
<Bundle-Version>1.0.0</Bundle-Version>
<Export-Package>
org.wso2.carbon.bridge; version=1.0.0,
org.wso2.carbon.server.transports; version=1.0.0,
javax.servlet; version=2.4.0,
javax.servlet.http; version=2.4.0,
javax.servlet.resources; version=2.4.0
</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Can anyone help me to fix this issue ?
Lahiru
--
Apache Qpid, Worlds dominant messaging middleware..!!!
Re: Creating a jar with manifest only using maven-bundle-plugin
Posted by Wayne Fay <wa...@gmail.com>.
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
You should probably should talk to the Felix folks who created this plugin.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org