You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Sudhir Dharmadhikari <sd...@verient.com> on 2010/07/02 18:51:35 UTC

Embed-Dependency does not work

Hi - I saw couple threads about Embed-Dependency not working. But not 
sure if it was fixed or if there is any other way.

Here is my code, Nothing gets embedded in the bundle . I have tried 
couple of things , for example, writing name of dependency instead of 
"*", turning on/off "inline" .
Can you please help ?
          <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.1.0</version>
                <extensions>true</extensions>
                <configuration>
                    
<Embed-Dependency>*;scope=compile|runtime;type=!pom,inline=false</Embed-Dependency>
                    <Embed-Transitive>true</Embed-Transitive>
                </configuration>
              </plugin>

Thanks,
Sudhir


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


Re: Embed-Dependency does not work

Posted by Justin Edelson <ju...@gmail.com>.
<Embed-Dependency> needs to go inside <instructions>.


On 7/2/10 12:51 PM, Sudhir Dharmadhikari wrote:
> Hi - I saw couple threads about Embed-Dependency not working. But not
> sure if it was fixed or if there is any other way.
> 
> Here is my code, Nothing gets embedded in the bundle . I have tried
> couple of things , for example, writing name of dependency instead of
> "*", turning on/off "inline" .
> Can you please help ?
>          <plugin>
>                <groupId>org.apache.felix</groupId>
>                <artifactId>maven-bundle-plugin</artifactId>
>                <version>2.1.0</version>
>                <extensions>true</extensions>
>                <configuration>
>                   
> <Embed-Dependency>*;scope=compile|runtime;type=!pom,inline=false</Embed-Dependency>
> 
>                    <Embed-Transitive>true</Embed-Transitive>
>                </configuration>
>              </plugin>
> 
> Thanks,
> Sudhir
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Embed-Dependency does not work

Posted by Chris Blunck <ch...@thebluncks.com>.
I typically do this:

<instructions>
  <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
  <Bundle-ClassPath>{maven-dependencies},.</Bundle-ClassPath>
</instructions>

Make sure you are running the latest maven-bundle-plugin.


-c


On Fri, Jul 2, 2010 at 12:51 PM, Sudhir Dharmadhikari <
sdharmadhikari@verient.com> wrote:

> Hi - I saw couple threads about Embed-Dependency not working. But not sure
> if it was fixed or if there is any other way.
>
> Here is my code, Nothing gets embedded in the bundle . I have tried couple
> of things , for example, writing name of dependency instead of "*", turning
> on/off "inline" .
> Can you please help ?
>         <plugin>
>               <groupId>org.apache.felix</groupId>
>               <artifactId>maven-bundle-plugin</artifactId>
>               <version>2.1.0</version>
>               <extensions>true</extensions>
>               <configuration>
>
> <Embed-Dependency>*;scope=compile|runtime;type=!pom,inline=false</Embed-Dependency>
>                   <Embed-Transitive>true</Embed-Transitive>
>               </configuration>
>             </plugin>
>
> Thanks,
> Sudhir
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>