felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dileepa Jayakody <dile...@wso2.com>
Subject Re: How to embed jar into a bundle?
Date Wed, 29 Feb 2012 04:32:14 GMT
Hi Rice,

Did  you check if you have defined the dojo dependency correctly under the
<dependencies> section of your pom?

Regards,
Dileepa

On Wed, Feb 29, 2012 at 9:26 AM, Rice Yeh <riceyeh@gmail.com> wrote:

> Hi,
>  I use <Embed-Dependency> in maven-bundle-plugin to embed a jar to a
> bundle. The resulted manifest is correct but the jar is not embedded in the
> bundle. What more should I do to have it embedded in my bundle? My maven
> pom is like the following:
>
>            <plugin>
>                <artifactId>maven-jar-plugin</artifactId>
>                <configuration>
>                    <archive>
>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>                    </archive>
>                </configuration>
>            </plugin>
>            <plugin>
>                <groupId>org.apache.felix</groupId>
>                <artifactId>maven-bundle-plugin</artifactId>
>                <extensions>true</extensions>
>                <executions>
>                    <execution>
>                        <id>bundle-manifest</id>
>                        <phase>process-classes</phase>
>                        <goals>
>                            <goal>manifest</goal>
>                        </goals>
>                    </execution>
>                </executions>
>                <configuration>
>                    <instructions>
>
> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
>
> <Bundle-Activator>xs.common.rs.Activator</Bundle-Activator>
>                        <Export-Package>xs.common.rs
> ;version=${project.version}</Export-Package>
>                        <Import-Package>
>                            as.*;xs.*;version="[1.5,2)",
>                            javax.servlet;version=2.4,
>                            *
>                        </Import-Package>
>
> <Embed-Dependency>dojo;scope=runtime</Embed-Dependency>
>                    </instructions>
>                </configuration>
>            </plugin>
>
>
> Rice
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message