You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stefano Lenzi (JIRA)" <ji...@apache.org> on 2008/08/18 12:11:44 UTC
[jira] Created: (FELIX-684) Enable excludeDependencies to check
groupId, version, etc. rather than only artifactId
Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
--------------------------------------------------------------------------------------
Key: FELIX-684
URL: https://issues.apache.org/jira/browse/FELIX-684
Project: Felix
Issue Type: Improvement
Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-1.4.3
Reporter: Stefano Lenzi
Priority: Minor
At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
The URI for a dependency is defined as follow:
<groupId>:<artifactId>:<type>:<version>:<scope>
The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
0 colon -> <artifactId>
1 colon -> <groupId>:<artifactId>
2 colon -> <groupId>:<artifactId>:<version>
3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Work started: (FELIX-684) Enable excludeDependencies to
check groupId, version, etc. rather than only artifactId
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on FELIX-684 started by Stuart McCulloch.
> Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
> --------------------------------------------------------------------------------------
>
> Key: FELIX-684
> URL: https://issues.apache.org/jira/browse/FELIX-684
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Stefano Lenzi
> Assignee: Stuart McCulloch
> Priority: Minor
> Fix For: maven-bundle-plugin-1.6.0
>
> Attachments: excludedependencies.r686718.patch
>
>
> At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
> I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
> The URI for a dependency is defined as follow:
> <groupId>:<artifactId>:<type>:<version>:<scope>
> The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
> 0 colon -> <artifactId>
> 1 colon -> <groupId>:<artifactId>
> 2 colon -> <groupId>:<artifactId>:<version>
> 3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-684) Enable excludeDependencies to check
groupId, version, etc. rather than only artifactId
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch reassigned FELIX-684:
--------------------------------------
Assignee: Stuart McCulloch
> Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
> --------------------------------------------------------------------------------------
>
> Key: FELIX-684
> URL: https://issues.apache.org/jira/browse/FELIX-684
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Stefano Lenzi
> Assignee: Stuart McCulloch
> Priority: Minor
> Fix For: maven-bundle-plugin-1.6.0
>
> Attachments: excludedependencies.r686718.patch
>
>
> At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
> I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
> The URI for a dependency is defined as follow:
> <groupId>:<artifactId>:<type>:<version>:<scope>
> The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
> 0 colon -> <artifactId>
> 1 colon -> <groupId>:<artifactId>
> 2 colon -> <groupId>:<artifactId>:<version>
> 3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-684) Enable excludeDependencies to check
groupId, version, etc. rather than only artifactId
Posted by "Stefano Lenzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefano Lenzi updated FELIX-684:
--------------------------------
Attachment: excludedependencies.r686718.patch
The patch implements the behavior request by my e-mail.
We should consider to allow a subtag like
<exclude>
<groupId></groupId>
<artifactId></artifactId>
....
</exclude>
in a more maven way rather than keeping the comma separated list
> Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
> --------------------------------------------------------------------------------------
>
> Key: FELIX-684
> URL: https://issues.apache.org/jira/browse/FELIX-684
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Stefano Lenzi
> Priority: Minor
> Attachments: excludedependencies.r686718.patch
>
>
> At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
> I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
> The URI for a dependency is defined as follow:
> <groupId>:<artifactId>:<type>:<version>:<scope>
> The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
> 0 colon -> <artifactId>
> 1 colon -> <groupId>:<artifactId>
> 2 colon -> <groupId>:<artifactId>:<version>
> 3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-684) Enable excludeDependencies to check
groupId, version, etc. rather than only artifactId
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch updated FELIX-684:
-----------------------------------
Fix Version/s: maven-bundle-plugin-1.6.0
targeting next major release (1.6.0) of the maven-bundle-plugin
> Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
> --------------------------------------------------------------------------------------
>
> Key: FELIX-684
> URL: https://issues.apache.org/jira/browse/FELIX-684
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Stefano Lenzi
> Priority: Minor
> Fix For: maven-bundle-plugin-1.6.0
>
> Attachments: excludedependencies.r686718.patch
>
>
> At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
> I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
> The URI for a dependency is defined as follow:
> <groupId>:<artifactId>:<type>:<version>:<scope>
> The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
> 0 colon -> <artifactId>
> 1 colon -> <groupId>:<artifactId>
> 2 colon -> <groupId>:<artifactId>:<version>
> 3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-684) Enable excludeDependencies to check
groupId, version, etc. rather than only artifactId
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch resolved FELIX-684.
------------------------------------
Resolution: Fixed
Rather than invent a new syntax for filtering dependencies I decided to re-use the filter code from embedding dependencies:
( this approach also means we retain backwards compatibility, because a simple name is taken to be a filter on the artifactId )
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html#ApacheFelixMavenBundlePlugin(BND)-Embeddingdependencies
this means you can now exclude dependencies based on clauses:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.5.0-SNAPSHOT</version>
<configuration>
<excludeDependencies>clause,clause,...</excludeDependencies>
<instructions>
<!- usual BND stuff -->
</instructions>
</configuration>
</plugin>
where:
clause ::= MATCH ( ';' attr '=' MATCH )
attr ::= 'groupId' | 'artifactId' | 'version' | 'scope' | 'type' | 'classifier'
MATCH ::= <globbed regular expression>
for example:
<excludeDependencies>*;scope=provided</excludeDependencies>
will exclude all provided scope dependencies from the classpath passed to BND (mimicking the old behaviour)
> Enable excludeDependencies to check groupId, version, etc. rather than only artifactId
> --------------------------------------------------------------------------------------
>
> Key: FELIX-684
> URL: https://issues.apache.org/jira/browse/FELIX-684
> Project: Felix
> Issue Type: Improvement
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-1.4.3
> Reporter: Stefano Lenzi
> Assignee: Stuart McCulloch
> Priority: Minor
> Fix For: maven-bundle-plugin-1.6.0
>
> Attachments: excludedependencies.r686718.patch
>
>
> At the moment maven-bundle-plugin allow a comma separated list as excludeDependencies, but this list allows the selection of the dependencies to exclude by means of artifacId.
> I'd like to be able to change the behavior of the excludeDependencies in order to accept a list of dependencies URI, so that the dependencies will be excluded only if it matches the whole URI.
> The URI for a dependency is defined as follow:
> <groupId>:<artifactId>:<type>:<version>:<scope>
> The plugin should try to interpret non full qualified URI, in order to match the old behavior and to make the excludeDependecies more user-friendly. For instance, depending on the number of colon:
> 0 colon -> <artifactId>
> 1 colon -> <groupId>:<artifactId>
> 2 colon -> <groupId>:<artifactId>:<version>
> 3 colon -> <groupId>:<artifactId>:<type>:<version>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.