You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Eugene Voytitsky <vi...@gmail.com> on 2007/06/20 16:58:50 UTC

Bundle Plugin for Maven: adding jar inside bundle jar

Hi all,

It is possible to place jar-file specified in my bundle's pom.xml as 
dependency inside bundle jar-file?

So I would like to have a pom.xml for my my-bundle.jar like:

...
     <dependencies>
         <dependency>
             <groupId>com.bar</groupId>
             <artifactId>com.foo</artifactId>
             <version>1.0-SNAPSHOT</version>
         </dependency>
     </dependencies>

   <build>
     <plugins>
        <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <version>0.9.0-incubator-SNAPSHOT</version>
         <configuration>
           <instructions>
            <Bundle-Classpath>com.foo-1.0-SNAPSHOT.jar</Bundle-Classpath>
           </instructions>
         </configuration>
       </plugin>
     </plugins>
   </build>

and Maven should generate:

my-bundle-1.0-SNAPSHOT.jar:
    com
      ...
    META-INF
      MANIFEST.MF (with Bundle-Classpath: com.foo-1.0-SNAPSHOT.jar 
directive inside)
    com.foo-1.0-SNAPSHOT.jar

How can I do this?

thanks in advance

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


Re: Bundle Plugin for Maven: adding jar inside bundle jar

Posted by Eugene Voytitsky <vi...@sunbay.com>.
Richard S. Hall wrote:
> Actually, this issue just came up today on the dev@felix mailing 
> list...here is some last message on that thread:
> 
> http://mail-archives.apache.org/mod_mbox/felix-dev/200706.mbox/%3c81f0d9c0706200558k611db902pccdc70707e29fc62@mail.gmail.com%3e 

thanks Richard
I hope it will help me

-- 
Best regards,
Eugene Voytitsky

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


Re: Bundle Plugin for Maven: adding jar inside bundle jar

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Actually, this issue just came up today on the dev@felix mailing 
list...here is some last message on that thread:

http://mail-archives.apache.org/mod_mbox/felix-dev/200706.mbox/%3c81f0d9c0706200558k611db902pccdc70707e29fc62@mail.gmail.com%3e

This is an area that will are hoping to put some effort into in the 
not-so-distant future...

-> richard

Eugene Voytitsky wrote:
> Hi all,
>
> It is possible to place jar-file specified in my bundle's pom.xml as 
> dependency inside bundle jar-file?
>
> So I would like to have a pom.xml for my my-bundle.jar like:
>
> ...
>     <dependencies>
>         <dependency>
>             <groupId>com.bar</groupId>
>             <artifactId>com.foo</artifactId>
>             <version>1.0-SNAPSHOT</version>
>         </dependency>
>     </dependencies>
>
>   <build>
>     <plugins>
>        <plugin>
>         <groupId>org.apache.felix</groupId>
>         <artifactId>maven-bundle-plugin</artifactId>
>         <version>0.9.0-incubator-SNAPSHOT</version>
>         <configuration>
>           <instructions>
>            <Bundle-Classpath>com.foo-1.0-SNAPSHOT.jar</Bundle-Classpath>
>           </instructions>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
>
> and Maven should generate:
>
> my-bundle-1.0-SNAPSHOT.jar:
>    com
>      ...
>    META-INF
>      MANIFEST.MF (with Bundle-Classpath: com.foo-1.0-SNAPSHOT.jar 
> directive inside)
>    com.foo-1.0-SNAPSHOT.jar
>
> How can I do this?
>
> thanks in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

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