You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Daniel Bimschas (JIRA)" <ji...@apache.org> on 2009/11/05 16:15:51 UTC
[jira] Created: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
-----------------------------------------------------------------------------------
Key: FELIX-1847
URL: https://issues.apache.org/jira/browse/FELIX-1847
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-2.0.1
Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_15
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: de_DE, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
Reporter: Daniel Bimschas
Fix For: maven-scr-plugin-1.4.0
Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
--------------------------
"The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
"Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
--------------------------
The reason of error is the same as in Patricks comment:
[ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786730#action_12786730 ]
Reto Bachmann-Gmür commented on FELIX-1847:
-------------------------------------------
the error occurs (as the title of the issues says) with maven-scr-plugin 1.4, at least at the time of submitting the the patch it also occurred using 1.4.1-SNAPSHOT built from trunk.
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: scr-1.2.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Fix For: maven-scr-plugin-1.4.0
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch reassigned FELIX-1847:
---------------------------------------
Assignee: Carsten Ziegeler
Hi Carsten, could you take a quick look at Reto's patch for the scr plugin?
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.4.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.4.1
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch updated FELIX-1847:
------------------------------------
Component/s: Maven SCR Plugin
Affects Version/s: scr-1.2.0
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: scr-1.2.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Fix For: maven-scr-plugin-1.4.0
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart McCulloch updated FELIX-1847:
------------------------------------
Affects Version/s: (was: scr-1.2.0)
maven-scr-plugin-1.4.0
Fix Version/s: (was: maven-scr-plugin-1.4.0)
maven-scr-plugin-1.4.1
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.4.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Fix For: maven-scr-plugin-1.4.1
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reto Bachmann-Gmür updated FELIX-1847:
--------------------------------------
Attachment: felix-1847-patch
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Fix For: maven-scr-plugin-1.4.0
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed FELIX-1847.
-----------------------------------
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.4.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.4.2
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-1847.
-------------------------------------
Resolution: Fixed
Hi, the patch looks good - I've applied it in revision 887856. Thanks!
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin, Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.4.0, maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.4.1
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-1847) Error with duplicates when using
maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
Posted by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782948#action_12782948 ]
Reto Bachmann-Gmür commented on FELIX-1847:
-------------------------------------------
"The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
with the proposed patch the scr just doesn't add an entry already present.
> Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4
> -----------------------------------------------------------------------------------
>
> Key: FELIX-1847
> URL: https://issues.apache.org/jira/browse/FELIX-1847
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-2.0.1
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_15
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: de_DE, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
> Reporter: Daniel Bimschas
> Fix For: maven-scr-plugin-1.4.0
>
> Attachments: felix-1847-patch
>
>
> Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:
> --------------------------
> "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
> FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
> whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."
>
> "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
> The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
> --------------------------
> The reason of error is the same as in Patricks comment:
> [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.