felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-308) Add support for embedding dependency JAR files to bundle plugin
Date Mon, 06 Aug 2007 13:33:59 GMT

    [ https://issues.apache.org/jira/browse/FELIX-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517927

Stuart McCulloch commented on FELIX-308:

BTW, if you want to add a dependency to your pom (ie. for embedding purposes) but don't want
users of your bundle picking up that dependency then you can mark it as optional, for example
updating the framework/pom.xml to use:

      <optional>true</optional>                          //   <--- ie. not
required by users of this artifact

would (hopefully) solve Craig's question about bundle dependencies (FWIW, it works in my tests)

> Add support for embedding dependency JAR files to bundle plugin
> ---------------------------------------------------------------
>                 Key: FELIX-308
>                 URL: https://issues.apache.org/jira/browse/FELIX-308
>             Project: Felix
>          Issue Type: New Feature
>          Components: Maven Bundle Plugin
>            Reporter: Richard S. Hall
>         Attachments: FELIX_308_EMBED_SUPPORT_20070803.txt, FELIX_308_EMBED_SUPPORT_20070806.txt
> The following is a proposal for how to support embedding dependency JAR files in the
bundle plugin. The general approach is a slightly modified version of a proposal by Peter
Kriens. The idea is to add a mechanism to deal with embedding JARs that is very similar to
how the old maven plugin worked, but doing it in a slightly more generic way than the old
plugin by adding the following instruction:
>     embed-dependency        ::= clause ( ',' clause ) *
>     clause                  ::= MATCH ( ';' attr '=' MATCH )
>     attr                    ::= 'groupId' | 'artifactId' | 'version' | 'scope'
>     MATCH                   ::= <globbed regular expressions>
> This instruction would be used to match the specified Maven dependencies for embedding.
Any matching dependency would have its JAR file embedded onto the resulting bundle JAR file
and it would be appended to the Bundle-ClassPath header after ".".
> This would allow people to easily achieve the same behavior as the old plugin by simply
>     <embed-dependency>*;scope=compile|runtime</embed-dependency>
> Thus, this instruction would automatically embed any maven dependencies that were of
scope "compile" or "runtime" and append them to the bundle class path.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message